﻿@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 300;
    src: url("../../fonts/Rubik-Light.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 400;
    src: url("../../fonts/Rubik-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: italic;
    font-weight: 400;
    src: url("../../fonts/Rubik-Italic.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 500;
    src: url("../../fonts/Rubik-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 600;
    src: url("../../fonts/Rubik-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 700;
    src: url("../../fonts/Rubik-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 900;
    src: url("../../fonts/Rubik-Black.ttf") format("truetype");
}

html,
body {
    height: 100%;
    margin: 0;
}

* {
    font-family: "Rubik", sans-serif !important;
}

body {
    background: #f1f7ff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    padding: 0;
    margin: 0;
}

header .header-container {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(90deg, #0056d7, #0046a4);
    padding: 24px;
    align-items: center;
}

    header .header-container a {
        color: white;
        text-decoration: none;
    }

    header .header-container .left-header {
        display: flex;
        align-items: center;
        gap: 15px;
        color: white;
    }

        header .header-container .left-header .person-details {
            display: flex;
            flex-direction: row;
            gap: 12px;
            align-items: center;
        }

    header .header-container .accessibility-button {
        display: flex;
        align-items: center;
        gap: 4px;
    }

        header .header-container .accessibility-button:focus-visible {
            outline: 2px solid white;
            border-radius: 4px;
        }

    header .header-container .logo {
        display: flex;
        align-items: center;
        gap: 4px;
        color: white;
    }

    header .header-container .logo-image {
        opacity: 0.6;
        width: clamp(25px, 2.5vw, 38px);
    }

    header .header-container .logo-label {
        line-height: 1;
        margin-bottom: -3px;
        opacity: 0.9;
        font-size: clamp(12px, 1vw, 16px);
    }

    header .header-container .logo-title {
        font-weight: 700;
        font-size: clamp(18px, 2vw, 32px);
        line-height: 1;
    }

.container {
    width: 100%;
    max-width: 1362px;
    margin-inline: auto;
    padding-inline: 50px;
    flex: 1 1 100%;
}

main {
    height: 100%;
}

.footer {
    background: white;
    display: flex;
    justify-content: space-around;
}

    .footer .footer-container {
        display: flex;
        line-height: normal;
        padding-block: 6px;
        align-items: center;
        gap: 25px;
    }

.footer-container a {
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    color: #0C3058;
}

.footer-container b {
    font-weight: 600;
}

.footer .footer-container .phone {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.block {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.08);
}

.card {
    /* height: 207px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0px 16px 0px;
    margin-bottom: 19px;
}

a, button, .p-dropdown, .p-dropdown-item, .p-multiselect, .p-autocomplete-panel, input[type="radio"] {
    cursor: pointer;
}

.button {
    text-align: center;
    padding: 7px 16px;
    border-radius: 32px;
    cursor: pointer;
    transition: outline 100ms;
    color: white;
    background-color: #0068F5;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
}
/* קונטיינר כללי */
.regular-width {
    width: 256px;
}

#new-pniya-app.info-field.date-picker .p-datepicker table {
    margin: 0;
}


/* עוטף השדה */
#new-pniya-app .info-field.date-picker {
    position: relative;
    width: 256px;
}

    /* הלוח עצמו */
    #new-pniya-app .info-field.date-picker .p-datepicker {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        transform: none !important;
        z-index: 10;
        width: 100%;
        border: 1px solid #3b82f6;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        background: #fff;
        margin-top: 8px !important;
        padding: 16px 16px 32px 16px;
        box-sizing: border-box;
    }


    /* השדה עצמו */
    #new-pniya-app .info-field.date-picker .p-inputtext {
        width: 100%;
        padding-left: 45px;
        border-radius: 6px;
        height: 38px;
        color: #495057;
        box-sizing: border-box;
        font-weight: 300;
    }

    /* אייקון לוח */
    #new-pniya-app .info-field.date-picker .p-datepicker-trigger {
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f3f3f3;
        border: 1px solid #ccc;
        border-radius: 6px 0 0 6px;
        cursor: pointer;
    }

        #new-pniya-app .info-field.date-picker .p-datepicker-trigger img {
            width: 17px;
            height: 17px;
        }

    /* כותרת חודש/שנה */
    #new-pniya-app .info-field.date-picker .p-datepicker-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 0;
        height: 16px;
        margin-bottom: 18px;
    }

        #new-pniya-app .info-field.date-picker .p-datepicker-header .custom-header {
            margin-left: 0.5rem;
            display: flex;
        }

        #new-pniya-app .info-field.date-picker .p-datepicker-header > :nth-child(4) {
            margin-left: 0.5rem;
        }

    /* החלק הימני – שם חודש ושנה + חץ */
    #new-pniya-app .info-field.date-picker .p-datepicker-title {
        order: -1;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-weight: 300;
        font-size: 1rem;
    }

    /* חודש ושנה */
    #new-pniya-app .info-field.date-picker .p-datepicker-month,
    #new-pniya-app .info-field.date-picker .p-datepicker-year {
        border: none;
        background: none;
        font-weight: 300;
        font-size: 16px;
        padding: 0;
    }

    /* חיצים */
    #new-pniya-app .info-field.date-picker .p-datepicker-prev,
    #new-pniya-app .info-field.date-picker .p-datepicker-next {
        background: none !important;
        border: none !important;
        cursor: pointer;
        font-size: 1.2rem;
    }

    #new-pniya-app .info-field.date-picker .p-datepicker-next {
        order: 0;
    }

    #new-pniya-app .info-field.date-picker .p-datepicker-prev {
        order: 2;
    }


        #new-pniya-app .info-field.date-picker .p-datepicker-prev:hover,
        #new-pniya-app .info-field.date-picker .p-datepicker-next:hover {
            background-color: #e0edff;
        }

    /* לוח הימים */
    #new-pniya-app .info-field.date-picker .p-datepicker-calendar {
        text-align: center;
        width: 100%;
        border-collapse: separate;
        margin: 0;
        table-layout: fixed;
    }

        #new-pniya-app .info-field.date-picker .p-datepicker-calendar th {
            color: #475569;
            font-weight: 600;
            font-size: 14px;
            padding: 0;
        }

        #new-pniya-app .info-field.date-picker .p-datepicker-calendar td {
            padding: 0;
        }

            #new-pniya-app .info-field.date-picker .p-datepicker-calendar td > span {
                font-weight: 300;
                display: inline-block;
                font-size: 14px;
                width: 1.5rem;
                height: 1.5rem;
                align-content: center;
                border-radius: 50%;
                cursor: pointer;
                transition: background-color 0.2s, color 0.2s;
            }

            /* יום נבחר */
            #new-pniya-app .info-field.date-picker .p-datepicker-calendar td.p-datepicker-current-day > span {
                background: #2563eb;
                color: #fff;
            }

            /* היום הנוכחי */
            #new-pniya-app .info-field.date-picker .p-datepicker-calendar td.p-datepicker-today > span {
                background: #0068F5; /* כחול מלא */
                color: #fff;
            }

            /* אפקט hover */
            #new-pniya-app .info-field.date-picker .p-datepicker-calendar td > span:hover {
                background: #dbeafe;
            }

    #new-pniya-app .info-field.date-picker .p-yearpicker .p-yearpicker-year.p-highlight,
    #new-pniya-app .info-field.date-picker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):not(.p-highlight):hover,
    .p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):not(.p-highlight):hover {
        border-radius: 50%;
        background-color: #dbeafe;
    }

    #new-pniya-app .info-field.date-picker .p-yearpicker,
    #new-pniya-app .info-field.date-picker .p-monthpicker {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }

        #new-pniya-app .info-field.date-picker .p-yearpicker .p-yearpicker-year,
        #new-pniya-app .info-field.date-picker .p-monthpicker .p-monthpicker-month {
        }
        /* מרכוז תא החודש */
        #new-pniya-app .info-field.date-picker .p-yearpicker .p-yearpicker-year,
        #new-pniya-app .info-field.date-picker .p-monthpicker .p-monthpicker-month {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* הכפתור הפנימי — מרובע שקובע מעגל שווה ב־hover */
        #new-pniya-app .info-field.date-picker .p-yearpicker .p-yearpicker-year,
        #new-pniya-app .info-field.date-picker .p-monthpicker .p-monthpicker-month {
            width: 36px; /* גודל המעגל — שנה לפי צורך */
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0; /* מוודא שאין מרווח פנימי שמפריע */
            border-radius: 50%;
            line-height: 1;
            transition: background-color .12s;
            font-weight: 300;
            font-size: 14px;
        }

            /* רקע בהובר שמוודא מעגל סימטרי */
            #new-pniya-app .info-field.date-picker .p-yearpicker .p-yearpicker-year:hover,
            #new-pniya-app .info-field.date-picker .p-monthpicker .p-monthpicker-month:hover {
                background-color: rgba(0,0,0,0.08);
            }

/* עיצוב לשאר */
button:has(> img):not(.p-calendar button):not(.submit) {
    background: none;
    border: none;
    padding: 13px 0;
}

.accountDialog button:has(> img):not(.p-calendar button):not(.submit) {
    padding: 0;
}

.button > svg {
    margin: 2px;
    margin-left: 8px;
}

.button:hover {
    outline: 1px solid #0068f5;
}

.button:disabled {
    background-color: #707070;
    pointer-events: none;
    outline: 3px solid #b6c0cc;
}

.primary,
.secondary {
    padding: 4px 16px;
    border-radius: 36px;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    cursor: pointer;
    min-width: 100px;
    justify-content: center;
}

.primary {
    background-color: #0068f5;
    color: #ffffff;
    border: none;
}

    .primary:hover,
    .primary:focus {
        background-color: #0056d7;
    }

    .primary:focus {
        box-shadow: 0px 0px 0px 3px #c2dbfd;
    }

    .primary:disabled {
        background-color: #707070;
    }

/* .primary:active {
        background-color: var(--clr-blue-2);
    }*/

.secondary {
    border: 1px solid #BBBBCB;
    background: white;
    color: #0068f5;
}

    .secondary:hover {
        color: #0056d7;
        border-color: #0056d7;
    }

    .secondary:focus {
        border-color: #0068f5;
        box-shadow: 0px 0px 0px 3px #ebf3ff;
    }

    .secondary.disabled,
    .secondary:disabled {
        color: #707070;
        border-color: #CED7E0;
    }

    .secondary:active {
        background-color: #ebf3ff;
    }


.link {
    color: #0068F5;
    /*font-size: 15px;*/
    line-height: 24px;
    text-decoration: none;
}

    .link:active,
    .link:hover {
        text-decoration: underline;
    }

    .link:focus {
        padding: 6px;
        border-radius: 4px;
        box-shadow: 0 0 0 1px #0068F5;
    }

    .link:disabled {
        color: #67778F;
    }


.menu {
    position: absolute;
    top: calc(100% + 18px);
    right: unset;
    left: -26px;
    transform: none;
    width: var(--menu-width);
    color: #0c3058;
    box-shadow: 0px 4px 12px 0px #00000029;
    --fade-in-duration: 250ms;
    z-index: 1;
}

    .menu[open] {
        animation: fadein var(--fade-in-duration) ease-in forwards;
    }

    .menu:after {
        top: calc(calc(-1 * calc(var(--pointer-size)) / 2) - 1px);
        border-top: 1px solid #0056d7;
        border-left: 1px solid #0056d7;
        content: "";
        position: absolute;
        z-index: 0;
        left: 28px;
        top: calc(-1 * var(--pointer-size) / 2);
        width: var(--pointer-size);
        height: var(--pointer-size);
        transform: rotate(45deg);
        background: inherit;
        border-radius: 4px 0 0 0;
    }

.boxed {
    padding-inline: 200px;

    @media (max-width: 992px) {
        padding-inline: 16px;
    }
}



div.p-autocomplete-panel.p-component {
    overflow-x: auto;
    overflow-y: scroll;
    margin-top: 1px !important;
}

.p-autocomplete-panel.p-component::-webkit-scrollbar-button {
    display: none !important;
    width: 0;
    height: 0;
}

textarea::-webkit-scrollbar {
    width: 10px;
}



input[type="text"]:not(.p-autocomplete-input),
input[type="number"] {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #BBBBCB;
    width: 256px;
    padding-inline: 1rem;
}

textarea {
    height: 80px;
    border-radius: 8px;
    border: 1px solid #BBBBCB;
}

.p-inputswitch:not(.p-disabled):has(.p-inputswitch-input:hover).p-highlight span.p-inputswitch-slider,
.p-inputswitch.p-highlight span.p-inputswitch-slider {
    background-color: #0068F5;
}

/* dropdown section to each input added by class 'custom-dropdown' */
.custom-dropdown, .p-multiselect-label {
    position: relative;
    overflow: hidden;
    height: 38px;
}

label.radio-button {
    display: flex;
    align-items: center;
}

.info-field.radio-buttons-filter {
    display: flex;
}

input[type="radio"] {
    margin-bottom: 3px;
    -webkit-appearance: none;
    border: 2px solid #8596AF;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    position: relative;
}

    input[type="radio"].error:checked::before {
        background-color: #C93435;
    }

    input[type="radio"]:checked, input[type="radio"]:not(.error):hover, input[type="radio"]:focus {
        border-color: #0065ED;
    }

        input[type="radio"]:checked::before {
            content: "";
            position: absolute;
            top: 25%;
            left: 25%;
            width: 50%;
            height: 50%;
            border-radius: 50%;
            background-color: #0068F5;
        }

input.error + .radiomark,
input[type="checkbox"].error + .checkmark {
    border-color: #C93435;
}

.custom-autocomplete {
    border-radius: 8px;
}

    .custom-autocomplete input {
        height: 38px;
    }

    .custom-autocomplete button {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }

    .custom-autocomplete::after {
        content: "";
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid rgba(104, 126, 151, 1);
        z-index: 2;
        transition: transform 0.3s ease;
    }

.p-autocomplete-empty-message {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-right: 1.25rem;
}

.custom-dropdown::before, .p-multiselect::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: #f7f8fa;
    z-index: 1;
    border-inline-start: 1px solid rgba(187, 187, 203, 1);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.custom-dropdown::after, .p-multiselect::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(104, 126, 151, 1);
    z-index: 2;
    transition: transform 0.3s ease;
}

.custom-dropdown .p-dropdown-label, #new-pniya-app .custom-autocomplete input {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-block: 0px;
    line-height: 38px;
}

.custom-dropdown.p-dropdown-open::after {
    transform: translate(-50%, -50%) rotate(180deg);
}

.custom-dropdown.p-dropdown {
    border: 1px solid #BBBBCB;
    display: flex;
}

.p-dropdown-panel .p-dropdown-items {
    overflow-y: auto !important;
    max-height: 200px !important;
}

ul {
    list-style-type: none;
    list-style-position: inside;
    margin: 0;
    padding: 0;
}
/*input*/
.input {
    border-radius: 8px;
    padding: 7px 16px;
    border: 1px solid rgba(187, 187, 203, 1);
    min-height: 38px;
    width: 256px;
    font-weight: 300;
    font-size: 16px;
}

input[type="radio"].error:hover, input[type="radio"].error:active, input[type="radio"].error:focus {
    border-radius: 50%;
}
/*checkbox*/
.checkbox {
    margin-top: 25px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.pniya-header-title {
    font-weight: 500;
    margin: 0;
    color: var(--downriver-50, #0C3058);
}

.my-pniya-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    align-items: flex-end;
}

.radio-button {
    padding-left: 5px;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #0C3058;
    border-radius: 5px;
    margin-left: 7px;
    display: inline-block;
    position: relative;
}

.checkbox-list {
    display: flex;
    gap: 10px;
}

.checkbox-item input:focus + .checkmark {
    box-shadow: 0 0 0 2px rgba(0, 104, 245, 0.10);
    border-color: #8596AF;
}

.checkbox-item input[type="checkbox"]:not(:checked):not(.error):hover + .checkmark {
    background-color: #0068f508;
    border-color: #0068F5;
}

.checkbox-item input:checked:not(.error) + .checkmark {
    background-color: #0079FF;
    border-color: #0079FF;
}

.checkbox-item .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    width: 15%;
    height: 35%;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-item input:checked + .checkmark::after {
    display: block;
}

/*toggle*/

.toggle-buttons-filter {
    display: flex;
    align-items: center;
    border: 1px solid #E1E7F3;
    border-radius: 999px;
    background: #F7FAFF;
    gap: 2px;
    height: 38px;
    width: fit-content;
}

.toggle-item {
    width: 102px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #0068F5;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.15s;
    padding: 0 16px;
}

    .toggle-item.active {
        background-color: #0068F5;
        color: #fff;
    }

    .toggle-item:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.required {
    color: red;
}

.validation {
    color: #cb0404;
    display: block;
    line-height: 1;
    width: fit-content;
    font-size: 14px;
}

.p-multiselect {
    height: 38px;
    border-radius: 6px;
    position: relative;
    border: 1px solid #BBBBCB;
}

.p-multiselect-label {
    padding: 0 12px;
    display: flex;
    align-items: center;
    line-height: normal;
    color: #495057;
}

.p-multiselect-panel {
    max-height: 200px;
    overflow-y: scroll;
}


    .p-multiselect-panel .p-multiselect-items .p-multiselect-item {
        display: flex;
    }

    .p-multiselect-panel .p-checkbox, .p-checkbox-input {
        cursor: pointer;
    }

/* Selected */
.p-multiselect-item .p-highlight .p-checkbox-box, .p-multiselect-header .p-highlight .p-checkbox-box {
    background: #0079FF;
    border: 2px solid #0079FF;
}

.header-divider {
    font-weight: 300;
}

.p-multiselect-panel .p-multiselect-items .p-multiselect-item[aria-selected="true"],
.p-multiselect-panel .p-multiselect-items .p-multiselect-item[data-p-highlight="true"] {
    background-color: #e3f2fd;
}

.p-multiselect-item.p-highlight
.p-multiselect-item-label {
    color: #0d47a1;
}

.p-multiselect-panel
.p-multiselect-item
.p-checkbox {
    margin-left: 8px;
}

.p-multiselect-panel .p-multiselect-header .p-multiselect-close {
    display: none;
}

.p-multiselect-panel .p-multiselect-header {
    display: flex;
    align-items: center;
}

    .p-multiselect-panel .p-multiselect-header::after {
        content: "בחר הכל";
        margin-right: 8px;
    }

header .header-container .left-header .account-details .mobile-only {
    display: none;
}

@media (max-width: 992px) {
    .container {
        padding-inline: 12px;
    }

    header .header-container .logo-image {
        width: 25.28px;
        height: 28.8px;
        opacity: 1;
    }

    header .header-container .logo-label {
        font-size: 12px;
    }

    header .header-container .logo-title {
        font-size: 18px;
    }

    label {
        font-size: 16px;
    }

    #new-pniya-app .info-field.date-picker, .input {
        width: 100%;
    }

    input[type="text"]:not(.p-autocomplete-input), .search-bar-filter .custom-dropdown,
    input[type="number"], .input, .search-bar-filters #searchSubject, #searchStatus, #searchText {
        width: 100%;
        height: 32px !important;
        min-height: 32px;
    }

    .custom-autocomplete input, a, .p-multiselect, .p-inputtext, input, .p-multiselect-label, .p-dropdown {
        height: 32px;
    }

    .account-details .desktop-only, .header-divider,
    header .header-container .left-header .accessibility span {
        display: none;
    }

    header .header-container .left-header .account-details .mobile-only {
        display: block;
    }

    header .header-container .left-header .account-details .dialog-item {
        display: flex;
        padding: 8px;
        gap: 8px;
        align-items: center;
    }

    header .header-container .left-header .person-details img {
        display: block;
    }

    .prev-page-btn {
        padding: 4px 16px;
    }

    header .header-container {
        padding: 16px;
    }

        header .header-container .left-header .person-details {
            gap: 0;
        }

        header .header-container .left-header {
            gap: 18px;
        }

    .custom-dropdown .p-dropdown-label, .custom-autocomplete input, #my-pniyot-app .search-bar-filters .p-inputtext {
        line-height: 32px;
    }

    #new-pniya-app .info-field.date-picker .p-datepicker-trigger {
        height: 32px;
    }
}

.align-start, .pniya-number, .accordion-body-header, .pniya-tochen, .row {
    color: #071F3B;
}

.p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter {
    margin-right: 8px;
    width: 182px;
}

.p-multiselect-panel
.p-multiselect-header:has(.p-multiselect-filter-container)::after {
    content: " ";
    margin: 0;
}

.p-multiselect-header .p-multiselect-filter.p-inputtext {
    height: 32px;
    width: 160px;
    margin-inline-end: auto;
}

.custom-autocomplete .p-multiselect-header .p-checkbox.p-component {
    display: inline-flex;
    align-items: center;
    width: 60px;
}

    .custom-autocomplete .p-multiselect-header .p-checkbox.p-component::after {
        content: "הכל";
        margin-inline-start: 0.5rem;
        font-size: 0.875rem;
    }

.p-multiselect-header .p-multiselect-filter-container {
    margin-right: auto;
}

    .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon {
        display: none;
    }


.p-autocomplete-panel::-webkit-scrollbar, .p-multiselect-panel::-webkit-scrollbar, .p-dropdown-panel .p-dropdown-items::-webkit-scrollbar {
    width: 6px;
}

.p-autocomplete-panel::-webkit-scrollbar-thumb, .p-multiselect-panel::-webkit-scrollbar-thumb, .p-dropdown-panel .p-dropdown-items::-webkit-scrollbar-thumb {
    background-color: #BBBBCB;
    border-radius: 4px;
}

::-webkit-scrollbar-button {
    display: none;
}

.p-dropdown:not(.p-disabled):not(.p-focus):hover::before,
.p-multiselect:not(.p-disabled):not(.p-focus):hover::before,
.p-autocomplete:not(.p-disabled):not(:focus-within):hover .p-button,
#new-pniya-app .info-field.date-picker:hover .p-datepicker-trigger {
    border-color: var(--field-border-hover);
    background: #EEF4FF;
}

.p-dropdown.p-focus::before,
.p-multiselect.p-focus::before,
.p-autocomplete:focus-within .p-button,
#new-pniya-app .info-field.date-picker .p-focus .p-datepicker-trigger {
    border-color: #6366F1;
    background: #F7FAFF;
}

input:not(:disabled):not(.error):not(:focus):hover,
textarea:not(:disabled):not(:focus):hover,
select:not(:disabled):not(:focus):hover,
.custom-autocomplete .p-autocomplete-input:not(:focus):hover,
.p-autocomplete:hover,
#new-pniya-app .table input[type="text"]:not(.p-autocomplete-input):not(:disabled):not(.error):not(:focus):hover {
    border-color: var(--field-border-hover);
}
/* focus */

input:focus, input[type="number"]:focus,
textarea:focus,
select:focus,
input[type="text"]:not(.p-autocomplete-input):focus,
#new-pniya-app .table input[type="text"]:not(.p-autocomplete-input):focus {
    outline: none;
    border-color: var(--field-border-focus);
    box-shadow: var(--focus);
}

.p-autocomplete:not(.p-disabled):not(:focus-within):hover .p-autocomplete-input {
    border-color: var(--field-border-hover);
}

.error, .error:hover, .error:active, .error:focus {
    border: 1px solid #C93435 !important;
    border-radius: 6px;
}

.custom-dropdown.error::before, .p-multiselect.error::before {
    border-color: #C93435 !important;
    background-color: #FFFAFA !important;
}

.custom-dropdown.error::after, .p-multiselect.error::after, .custom-autocomplete.error::after {
    border-top-color: #C93435;
}

.custom-autocomplete.error .p-inputtext {
    border: none;
}

.p-autocomplete.error .p-button, .p-autocomplete.error:not(.p-disabled):not(:focus-within):hover .p-button {
    border: 0px;
    border-inline-start: 1px solid #C93435;
    background-color: #FFFAFA;
}

/* ===== global disabled styles (at end of file for cascade priority) ===== */

/* text inputs, textareas, selects */
input:disabled:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
textarea:disabled,
select:disabled,
.p-inputtext:disabled,
.input:disabled,
.textarea:disabled,
fieldset:disabled input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
fieldset:disabled textarea,
fieldset:disabled select,
fieldset:disabled .input,
fieldset:disabled .textarea {
    border-color: #BBBBCB;
    color: #707070;
    background-color: #F9F9F9;
    opacity: 1;
}

/* primevue dropdown / multiselect / autocomplete wrappers */
.p-dropdown.p-component.p-disabled,
.p-multiselect.p-component.p-disabled,
.p-autocomplete.p-component.p-disabled,
.custom-dropdown.p-dropdown.p-disabled,
fieldset:disabled .p-dropdown.p-component,
fieldset:disabled .p-multiselect.p-component,
fieldset:disabled .p-autocomplete.p-component,
fieldset:disabled .custom-dropdown.p-dropdown {
    border-color: #BBBBCB;
    background-color: #F9F9F9;
    opacity: 1;
}

    .p-autocomplete.p-component.p-disabled input,
    fieldset:disabled .p-autocomplete.p-component input {
        border-color: #BBBBCB;
        color: #707070;
        background-color: #F9F9F9;
    }

    /* dropdown/multiselect label text */
    .p-dropdown.p-component.p-disabled .p-dropdown-label,
    .p-multiselect.p-component.p-disabled .p-multiselect-label,
    fieldset:disabled .p-dropdown.p-component .p-dropdown-label,
    fieldset:disabled .p-multiselect.p-component .p-multiselect-label {
        color: #707070;
    }

    /* dropdown/multiselect arrow area (::before) */
    .custom-dropdown.p-dropdown.p-disabled::before,
    .p-multiselect.p-component.p-disabled::before,
    fieldset:disabled .custom-dropdown.p-dropdown::before,
    fieldset:disabled .p-multiselect.p-component::before {
        background: #F9F9F9;
        border-color: #BBBBCB;
        opacity: 1;
    }

    /* dropdown/multiselect/autocomplete arrow icon (::after) */
    .custom-dropdown.p-dropdown.p-disabled::after,
    .p-multiselect.p-component.p-disabled::after,
    .custom-autocomplete.p-autocomplete.p-disabled::after,
    fieldset:disabled .custom-dropdown.p-dropdown::after,
    fieldset:disabled .p-multiselect.p-component::after,
    fieldset:disabled .custom-autocomplete.p-autocomplete::after {
        opacity: 1;
    }

/* checkboxes */
fieldset:disabled .checkbox-item .checkmark,
.checkbox-item input[type="checkbox"]:disabled + .checkmark {
    border-color: #BBBBCB;
    background-color: #F9F9F9;
}

fieldset:disabled .checkbox-item span,
.checkbox-item input[type="checkbox"]:disabled ~ span {
    color: #707070;
}

/* radio buttons */
input[type="radio"]:disabled,
fieldset:disabled input[type="radio"] {
    border-color: #BBBBCB;
    background-color: #F9F9F9;
    opacity: 1;
}

fieldset:disabled label.radio-button,
fieldset:disabled label.radio-button span {
    color: #707070;
}

/* toggle buttons */
fieldset:disabled .toggle-buttons-filter,
.toggle-buttons-filter:has(> .toggle-item:disabled) {
    border-color: #BBBBCB;
    background-color: #F9F9F9;
}

    fieldset:disabled .toggle-buttons-filter .toggle-item,
    .toggle-buttons-filter .toggle-item:disabled {
        color: #707070;
        opacity: 1;
        cursor: not-allowed;
    }

        fieldset:disabled .toggle-buttons-filter .toggle-item.active,
        .toggle-buttons-filter .toggle-item.active:disabled {
            background-color: #BBBBCB;
            color: #fff;
        }

/* upload / drop area */
fieldset:disabled .file-upload .drop-area,
.file-upload .drop-area.disabled {
    --c: #BBBBCB;
    background-color: #F9F9F9;
}

    fieldset:disabled .file-upload .drop-area .drag-text,
    .file-upload .drop-area.disabled .drag-text {
        color: #707070;
    }

    fieldset:disabled .file-upload .custom-file-upload,
    .file-upload .drop-area.disabled .custom-file-upload {
        border-color: #BBBBCB;
        background-color: #F9F9F9;
        cursor: not-allowed;
    }
/* Fix for stuck hover state on autocomplete items */
.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-focus:not(:hover) {
    background: transparent !important;
}


/* Ellipsis for dropdown/autocomplete items in panels */
.p-autocomplete-panel .p-autocomplete-item,
.p-dropdown-panel .p-dropdown-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 993px) {
    .p-autocomplete-panel .p-autocomplete-item:hover,
    .p-dropdown-panel .p-dropdown-item:hover {
        white-space: normal;
        overflow: visible;
    }
}
