﻿html {
  font-size: 16px;
}

/* ===== Guide help button (❓) shown on any page ===== */
.guide-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    text-decoration: none !important;
    font-size: 0.78rem;
    vertical-align: middle;
    transition: all 0.15s;
    line-height: 1;
    margin-right: 4px;
}
.guide-help-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    text-decoration: none !important;
    transform: scale(1.1);
}

/* ===== כותרת קטנה למדור בתוך פאנל/כרטיס (למשל "סינון וחיפוש" / "פעולות") ===== */
.toolbar-section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check:focus .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    font-size: 18px;
}

.form-check .form-check-input {
    float: right;
  
}
.form-check-label {
    margin-right: 1.5em;
    font-size: 1.1rem;
    font-weight: 700;
    color: darkcyan;
}
html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

html, body {
    overflow-x: hidden;
}

html[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
}

table {
    direction: inherit;
}

    table th, table td {
        direction: inherit;
        text-align: start;
    }


textarea,
input[type="text"],
input {
    direction: inherit;
}

body {
    margin: 0;
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    text-align: var(--bs-body-text-align);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
        line-height: 1.1;
    }
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.navbar {
    height: 80px; /* Adjust the height as needed */
    display: flex;
    align-items: center; /* Ensures vertical alignment */
    justify-content: space-between; /* Adjusts spacing between items */
    padding: 10px 20px; /* Adds spacing inside navbar */
}

    .navbar img {
        max-height: 70px; /* Ensures images fit inside navbar */
        width: auto; /* Maintain aspect ratio */
        object-fit: contain;
    }

.navbar-center {
    flex-grow: 1; /* Pushes the center logo to the middle */
    display: flex;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    flex-direction: row !important; /* מכריח את הכיוון להיות אופקי */
    align-items: center;
    justify-content: start; /* מתחיל את הפריטים מהשמאל (או ימין אם RTL) */
    gap: 15px; /* ריווח בין פריטים */
}

.nav-item {
    position: relative;
    margin-right: 15px; /* ריווח בין פריטים */
}

.nav-link {
    text-decoration: none;
    color: #007bff;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
}

    .nav-link:hover {
        background-color: #f0f0f0;
        border-radius: 5px;
    }

.navbar .main-logo {
    max-height: 70px; /* קובע גודל שונה ללוגו הראשי */
    width: auto;
}

.navbar .client-logo {
    max-height: 80px; /* קובע גודל שונה ללוגו המשני */
    width: auto;
}



.user-fullname {
    font-weight: bold;
    font-size: 27px;
    color: #333; /* Adjust color */
    margin: auto;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    margin: auto;
}

.btn-sm, .btn-group-sm > .btn {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-radius: var(--bs-border-radius-sm);
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        margin: auto;
    }
}
@media (max-width: 768px) {
   
    .btn {
        font-size: 13px;
        padding: 6px 8px;
    }

        .btn:hover {
            font-size: 14px;
        }

        .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check:focus .form-check-input:focus {
            font-size: 14px;
        }
}

.nav-button {
    background-color: white;
    color: black;
    padding: 5px 7px;
    border-radius: 5px;
    border-color: white;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background-color 0.2s ease-in-out;
}

    .nav-button.active {
        background-color: #ffd700;
        letter-spacing: 1px;
        font-size: 1.32rem;
        font-weight: bold;
    }

    .nav-button:hover {
        background-color: lightgray;
        font-size: 1.32rem;
        font-weight: bold;
    }

.input-text {
    border: none;
    background: transparent;
    border-bottom: 1px solid #00000073;
    outline: none;
    height: 1.5rem;
    width: 90%;
    font-size: 1rem;
    color: black;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 768px) {
    .input-text {
        border: none;
        background: transparent;
        border-bottom: 0.01px solid #00000033;
        outline: none;
        height: 1.3rem;
        width: 95%;
        font-size: 0.88rem;
        color: black;
        font-weight: normal;
        text-align: right;
    }
    .form-select {
        font-size: 0.88rem;
    }

}
.required-star {
    color: red;
    font-size: 16px;
    margin-left: 5px;
    font-weight: bold;
}

h2 {
    font-size: 18px;
    color: darkblue;
    font-weight: bold;
}

h5 {
    font-size: 32px;
    color: black;
    font-weight: bold;
    text-align: center;
}

    h5 .colorBlue {
        color: darkblue;
        font-size: 32px;
    }


@media (max-width: 768px) {
    h2 {
        font-size: 14px;
        color: darkblue;
        font-weight: 700;
    }

    h5 {
        font-size: 16px;
        color: black;
        font-weight: bold;
        text-align: center;
    }
}
    h6 {
        font-size: 16px;
        color: black;
        font-weight: bold;
        text-align: center;
    }

        h6 .colorBlue {
            color: darkblue;
            font-size: 16px;
        }

    h10 {
        color: black;
        font-size: 18px;
        margin-right: 20px;
        text-decoration: none;
        cursor: pointer;
    }

    h13 {
        color: black;
        font-size: 20px;
        text-align: right;
        text-decoration: none;
        cursor: pointer;
    }

        h13 .colorTwo {
            color: blue;
            font-size: 20px;
            font-weight: bold;
        }

    h51 {
        text-decoration-line: none;
        font-size: 25px;
        color: black;
        font-weight: bold;
    }

    h51blue {
        text-decoration-line: none;
        font-size: 25px;
        color: blue;
        font-weight: bold;
    }

    h51red {
        text-decoration-line: none;
        font-size: 25px;
        color: red;
        font-weight: bold;
    }

    h51 .colorPurple {
        color: #d7275ff5;
        font-size: 30px;
    }

    h51 .colorBrown {
        color: brown;
    }

    h51 .colorGreen {
        color: green;
    }

    h51 .colorYellow {
        color: red;
    }

    h51 .colorBlue {
        color: blue;
    }

    h55 {
        font: bold 50px Arial;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: darkblue;
        text-shadow: 2px 2px 5px #1b4965;
        padding: 5px 10px;
        margin: 0 0 10px 0;
        line-height: 24px;
    }

        h55 .colorTwo {
            color: darkblue;
        }

    h56 {
        font: bold 32px sans-serif;
        text-transform: uppercase;
        color: darkblue;
        padding: 5px 10px;
        margin: 0 0 10px 0;
        line-height: 24px;
    }

    aside {
        display: block;
        position: relative;
        margin: 40px 0;
        writing-mode: vertical-lr;
    }

        aside h51 {
            font: bold 25px Arial;
            letter-spacing: 10px;
            text-transform: uppercase;
            background-color: powderblue;
            color: #fff;
            padding: 5px 10px;
            margin: 0 0 10px 0;
            line-height: 24px;
        }

    table {
        font-family: "Varela Round", sans-serif;
        font-size: 19px;
        border-collapse: collapse;
        width: 100%;
    }

    th, thead {
       font-weight: 540;
    }

    th, td {
        text-align: center;
        padding: 12px;
        vertical-align: middle;
        border-left: 2px solid #ddd;
    }

    thead {
        background-color: #f8f9fa;
        font-weight: bold;
        border-bottom: 2px solid #dee2e6;
        font-size: 21px;
    }

    tbody tr:nth-child(even) {
        background-color: #f6f6f6;
    }

    tbody tr:hover {
        background-color: #e8f0ff;
    }

    .action-icons a {
        display: inline-block;
        margin: 0 6px;
        font-size: 20px;
        text-decoration: none;
    }

        .action-icons a:hover {
            opacity: 0.8;
        }
.americon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}
.amerlogo {
    height: 70px;
}

.table-cell {
    /* display: flex;*/
    flex-direction: row; /* ערכים אחד מתחת לשני column */
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #ddd; /* מסגרת עדינה */
    font-size: 17px;
    text-align: center;
    line-height: 1.5;
    cursor: pointer; /* סימון שהתא לחיץ */
}

/* ============================================================
   📱 TABLE – MOBILE OPTIMIZED VIEW
   ============================================================ */
@media (max-width: 768px) {

    .americon {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }
    .amerlogo {
        max-height: 40px; /* קובע גודל שונה ללוגו הראשי */
        width: auto;
    }

    input[type=checkbox] {
        width: 12px;
        height: 12px;
        cursor: pointer;
        border-color: darkblue;
    }

    .summary-title {
        font-size: 18px;
        font-weight: bold;
        color: black;
    }

    .summary-value {
        font-size: 20px;
        font-weight: bold;
        color: black;
    }

    .summary-box {
        padding: 2px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #f8f9fa;
        min-width: 100px;
    }
    .form-check-label {
        font-size: 0.8rem;
        color: darkgreen;
        font-weight: 600;
    }

    .table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed;
    }


        /* מסתיר כותרת טבלה */
        .table thead {
            display: none !important;
        }

        /* כל שורה הופכת לכרטיס */
        .table tbody tr {
            /*display: block;*/
            background: #ffffff;
            border: 1px solid #e6e6e6;
            border-radius: 10px;
           /* padding: 10px 12px;*/
            margin-bottom: 12px;
            width: 100% !important;
        }

            /* כל תא הופך לשורה גמישה */
            .table tbody tr td {
                font-size: 13px;
                display: inline-block;
                align-items: start!important;
                /*padding: 0 !important;*/
                border: none !important;
                width: 100% !important;
                white-space: normal !important;
                word-break: break-word !important;
                text-align: start !important;
            }


        /* תווית לפני הערך */
        .table td::before {
            content: attr(data-label);
            padding-right: 10px;
            padding-left: 10px;
            color: #444;
            margin-left: 10px;
            flex-shrink: 0;
            font-size: 14px;
            font-weight: bold;
        }

    /* תאריך קצר */
    .td[data-label="תאריך"] {
        direction: rtl !important;
    }


    .table td::before {
        font-size: 12px;
    }

    .avatar {
        width: 34px !important;
        height: 34px !important;
    }

    .table .badge {
        font-size: 0.82rem !important;
    }

    .table .badgeworkplan {
        font-size: 0.82rem; /* ברירת מחדל 0.75–1rem → הגדלה */
        color: white !important;
        border-radius: 10%;
        background-color: #36bd36fa;
    }

    .table tfoot {
        display: block !important;
        margin-top: 10px;
        width: 100% !important;
    }

        .table tfoot tr {
            display: block !important;
            background: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 10px 12px;
            width: 100% !important;
        }

        .table tfoot td {
            display: block !important;
            width: 100% !important;
            /*text-align: right !important;*/
            font-size: 20px;
            font-weight: bold;
            border: none !important;
            padding: 6px 0 !important;
            white-space: normal !important;
        }

            /* סידור הטקסט של "סה״כ" */
            .table tfoot td:first-child {
                font-size: 20px;
                font-weight: 700;
                color: #000;
            }

            /* סידור התא של הסכום */
            .table tfoot td:last-child {
                font-size: 20px;
                font-weight: 700;
                color: #0b5ed7; /* צבע עדין */
            }
}
.icon {
    font-size: 1rem;
    text-decoration: none;
}
@media (max-width: 768px) {
    .icon {
        font-size: 0.88rem;
        text-decoration: none;
    }
    .action-icons {
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

        .action-icons a {
            font-size: 18px;
        }

    .label-text {
        display: none;
    }

}

    .label-text {
        margin-right: 4px;
    }

    .mobile-nav {
        position: fixed;
        bottom: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        display: flex;
        justify-content: space-around;
        padding: 6px 0;
        z-index: 9999;
    }

        .mobile-nav a {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 14px;
            color: #333;
            text-decoration: none;
        }

            .mobile-nav a span {
                font-size: 10px;
                margin-top: 2px;
            }

            .mobile-nav a:hover {
                background-color: #f0f0f0;
            }

    .col-md-45 {
        float: right;
        position: relative;
        min-height: 0px;
        margin: auto;
        margin-left: 15px;
        margin-right: 15px;
        margin-top: 5px;
        margin-bottom: 0px;
        width: 45%;
        background-color: white;
        border: solid;
        border-color: lightblue;
        border-radius: 15px;
        padding: 5px 5px;
    }

    .col-md-12 {
        float: right;
        position: relative;
        min-height: 0px;
        margin: auto;
        margin-bottom: 0px;
        width: 100%;
    }

    .col-md-4 {
        float: right;
        position: relative;
        min-height: 0px;
        margin: auto;
        margin-left: 10px;
        margin-top: 10px;
        margin-bottom: 0px;
        width: 32%;
    }

    .col-md-3 {
        float: right;
        position: relative;
        min-height: 0px;
        margin: auto;
        margin-left: 10px;
        margin-top: 10px;
        margin-bottom: 0px;
        width: 24%;
    }

    .col-md-1 {
        float: right;
        position: relative;
        min-height: 0px;
        margin: auto;
        margin-left: 10px;
        margin-top: 10px;
        margin-bottom: 0px;
        width: 8.33%;
    }

    .close {
        font-size: 32px;
        color: black;
        font-weight: bold;
    }

    .child-tile {
        border-radius: 16px;
        background-color: #fff;
        height: 100%;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        min-height: 360px;
        position: relative;
    }

        .child-tile:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        }

        .child-tile.inactive {
            background-color: #f8f9fa !important;
            opacity: 0.7;
        }

        .child-tile .status-overlay {
            position: absolute;
            top: 8px;
            inset-inline-end: 8px; /* פינה עליונה ימין ב-RTL */
            display: flex;
            gap: .25rem;
        }

    .child-photo {
        width: 100%;
        max-height: 160px;
        object-fit: contain;
        border-radius: 8px;
    }

    @media (max-width: 576px) {
        .child-card .btn {
            font-size: 14px;
            padding: 6px 8px;
        }
    }

    .date-rtl {
        direction: rtl;
        text-align: right;
    }

    canvas {
        max-height: 260px;
        width: 100%;
    }

    @media (max-width: 768px) {
        .dashboard-summary h6 {
            font-size: 0.9rem;
        }

        .dashboard-summary p {
            font-size: 1rem;
        }

        .dashboard-summary .fs-5 {
            font-size: 1.1rem !important;
        }

        .dashboard-summary h5 {
            font-size: 1.25rem;
        }

        .dashboard-summary h56 {
            font-size: 1.25rem;
        }
    }

    .location-icon {
        display: inline-block;
        margin-left: 5px;
        width: 16px;
        height: 16px;
        background-image: url('/images/location.png'); /* לוודא שהנתיב תקין */
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
        cursor: pointer; /* להפוך ללחיץ */
    }

    .time-entry {
        font-weight: bold;
        color: #007bff; /* כחול מודגש */
    }

    .time-exit {
        font-weight: bold;
        color: #ff5733; /* אדום מודגש */
    }



    @media (max-width: 768px) {
        #employeeForm .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        #employeeForm .form-control,
        #employeeForm .form-select {
            width: 100%;
            margin-bottom: 12px;
        }

        #employeeForm .col-md-3 {
            padding-left: 0;
            padding-right: 0;
        }
    }



input[type="checkbox"] {
    transform: scale(1.5);
    accent-color: #0d6efd; /*#dc3545*/ /* אדום בולט – אפשר להחליף לצבע אחר */
    cursor: pointer;
    background-color: lightblue;
    margin: 7px !important;
}



    .filter-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-item {
        flex: 1 1 30%; /* התאריכים ייכנסו בשורה אחת עד ~300px */
        min-width: 130px;
    }

    .date-input {
        font-size: 1rem;
    }

    .clear-btn {
        white-space: nowrap;
        padding: 6px 14px;
        height: 38px; /* כדי ליישר עם שדות */
    }
    /* ברירת מחדל – מציג את הטקסט שבתוך td */
    .date-cell::after {
        content: none;
    }

.summary-box {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    min-width: 130px;
}

    @media (max-width: 768px) {

        .date-cell {
            position: relative;
        }

            .date-cell > * {
                display: none !important; /* הסתרה של כל מה שבתוך td */
            }

            .date-cell::after {
                content: attr(data-date-short);
                position: relative;
                display: inline-block;
                color: #212529;
                font-size: 0.875rem;
            }

        .filter-controls {
            flex-direction: column;
            align-items: stretch;
        }

        .clear-btn {
            width: 100%;
        }

        .totals-wrapper {
            justify-content: space-between;
            width: 100%;
        }

        .summary-box {
            flex: 1 1 40%;
            padding: 0px 4px;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            background: #f8f9fa;
            min-width: 50px;
        }
    }
    /* גריד של עמודות רספונסיביות */
    .permission-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 20px;
        padding: 20px;
        max-width: 100%;
        direction: rtl;
        list-style: none;
        margin: 0;
    }

    /* כל קבוצה */
    .permission-group {
        background-color: #f8f9fa;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 15px;
    }

        /* כותרת קבוצה */
        .permission-group > label {
            font-weight: bold;
            font-size: 22px;
            margin-bottom: 10px;
            display: block;
        }

        /* כל פריט פנימי */
        .permission-group ul {
            padding-right: 20px;
            margin-top: 10px;
        }

            .permission-group ul li {
                list-style: none;
                margin-bottom: 5px;
            }

        .permission-group input[type="checkbox"] {
            margin-left: 10px;
            transform: scale(1.4);
        }

        .permission-group label {
            font-size: 22px;
            display: flex;
            align-items: center;
        }

        .permission-group span.toggle {
            margin-right: auto;
            cursor: pointer;
            font-size: 20px;
        }

    .project-logo {
        max-height: 100px !important;
        height: auto;
    }

    @media (max-width: 767.98px) {
        .project-logo {
            max-height: 70px !important;
        }
    }

    /* גודל לוגו נפרד לכל מסך - נתן לשנות כל אחד בנפרד */
.logo-newchild .project-logo {
    max-height: 500px !important;
    max-width: 60% !important;
    margin: auto !important;
    object-fit: contain;
}

    @media (max-width: 767.98px) {
        .logo-newchild .project-logo {
            max-height: 150px !important;
            max-width: 95% !important;
            margin: auto !important;
        }
    }

.logo-newemployee .project-logo {
    max-height: 500px !important;
    max-width: 100% !important;
    margin: auto !important;
    object-fit: contain;
}

    @media (max-width: 767.98px) {
        .logo-newemployee .project-logo {
            max-height: 150px !important;
            max-width: 95% !important;
            margin: auto !important;
        }
    }

.logo-parentreport .project-logo {
    max-height: 500px !important;
    max-width: 100% !important;
    margin: auto !important;
    object-fit: contain;
}

    @media (max-width: 767.98px) {
        .logo-parentreport .project-logo {
            /*max-height: 150px !important;*/
            max-width: 100% !important;
            margin: auto !important;
        }
    }

    .img-container {
        width: 100%;
        max-width: 350px; /* גודל מקסימלי בדסקטופ */
        aspect-ratio: 1 / 1; /* ריבועי */
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        overflow: hidden;
        margin: auto; /* מרכז במובייל */
    }

        .img-container img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }


    .badge {
        font-size: 1.0rem; /* ברירת מחדל 0.75–1rem → הגדלה */
        /*color: white !important;*/
        border-radius: 35%;
        background-color: #36bd36fa;
    }
    
    .badgeworkplan {
        font-size: 1.2rem; /* ברירת מחדל 0.75–1rem → הגדלה */
        color: white !important;
        border-radius: 10%;
        background-color: #36bd36fa;
    }

@media (max-width: 767.98px) {
    .badgeworkplan {
        font-size: 0.8rem; /* ברירת מחדל 0.75–1rem → הגדלה */
        color: white !important;
        border-radius: 10%;
        background-color: #36bd36fa;
    }
}

    .loader-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .loader-box {
        text-align: center;
    }

        .loader-box img {
            width: 80px;
            height: 80px;
        }

    #chatIndicator.active {
        color: red !important;
        animation: pulse 1.2s infinite;
    }

    @keyframes blink {
        from {
            opacity: 1;
        }

        to {
            opacity: 0.5;
        }
    }

    #chatIndicator.btn-danger {
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.08);
            opacity: 0.8;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .chat-file {
        margin-top: .3rem;
    }

    .chat-thumb {
        max-width: 180px;
        max-height: 180px;
        border-radius: 8px;
        cursor: pointer;
        display: block;
    }

    .chat-file a {
        display: inline-block;
        margin-top: .25rem;
        font-size: .85rem;
    }

    .chat-stream {
        overflow-y: auto;
        height: 65vh;
        scroll-behavior: smooth;
        background: #fafafa;
    }

    /* שורה תחתונה */
    .chat-input-row {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #ddd;
        padding: 8px;
        position: sticky;
        bottom: 0;
    }

    /* צמצום כפתורים למובייל */
    @media (max-width: 576px) {
        .chat-input-row {
            gap: 6px;
            padding: 6px;
        }

        #chat-input {
            font-size: 0.95rem;
        }

        #chat-file-name {
            display: none; /* במובייל חוסכים מקום */
        }

        #chat-send {
            font-size: 0.9rem;
            padding: 0 10px;
        }
    }

    .emoji-group {
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    .emoji {
        padding: 4px 10px;
        border: 1px solid #ccc;
        border-radius: 20px !important;
        background: #fff7e6;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        transition: 0.2s;
    }

        .emoji:hover {
            background: #ffe9c2;
            transform: scale(1.2);
            opacity: 1;
        }

        .emoji.active {
            background: #ffd48a !important;
            border-color: #ffb347 !important;
            box-shadow: 0 0 4px rgba(0,0,0,0.1);
        }

        .emoji .txt {
            display: inline-block;
        }

    .emoji-bulk {
        cursor: pointer;
        font-size: 1rem;
        opacity: 0.7;
        transition: transform 0.15s;
        border-radius: 20px !important;
        background: #fff7e6;
    }

        .emoji-bulk:hover {
            transform: scale(1.25);
            opacity: 1;
        }

    .emoji-group .emoji {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 12px;
        border: 1px solid #ddd;
        cursor: pointer;
        transition: 0.2s;
        user-select: none;
    }

        .emoji-group .emoji.active {
            background: #f0f8ff;
            border-color: #007bff;
        }

        .emoji-group .emoji img.icon {
            width: 22px;
            height: 22px;
        }


    .toast {
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.4s ease-in-out;
    }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

    .emoji-group-parent {
        display: flex;
        gap: 10px;
        margin-top: 5px;
    }

    .emoji-display {
        font-size: 1.8rem;
        line-height: 1;
        vertical-align: middle;
    }

    .icon-kk {
        width: 22px !important;
        height: 22px !important;
        display: inline-block !important;
        vertical-align: middle !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }




    #reloadChatBtn.loading {
        opacity: 0.7;
        pointer-events: none;
    }

        #reloadChatBtn.loading::after {
            content: "⟳";
            display: inline-block;
            margin-right: 4px;
            animation: spin 1s linear infinite;
        }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* 🎨 מצבים של היעדרויות (אחיד לכל המערכת) */
    .abs-vac {
        background-color: #e0ffe0 !important; /* ירוק רך לחופשה */
        color: #256029;
        font-weight: 600;
    }

    .abs-sick {
        background-color: #d6f0ff !important; /* כחול רך למחלה */
        color: #0b5394;
        font-weight: 600;
    }

    .abs-hol {
        background-color: #fff5d9 !important; /* צהוב רך לחג */
        color: #8a6d00;
        font-weight: 600;
    }


.invoice-date-box {
    min-width: 220px;
}

    .invoice-date-box input {
        max-width: 200px;
    }


.footer {
    font-size: 15px;
    color: #444;
}

.footer-logo {
    height: 38px;
    opacity: 0.9;
}

.footer-copy {
    font-weight: 500;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 4px;
    font-weight: 500;
}

.footer-links span {
    margin: 0 4px;
    color: #aaa;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-site a {
    color: #555;
    font-weight: 600;
    text-decoration: none;
}

    .footer-site a:hover {
        color: #007bff;
    }

.mobileMenubtn {
    font-size: 18px;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 2px 14px rgba(80, 130, 255, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: box-shadow 0.2s, transform 0.2s;
}

/* פס עליון במובייל - חייב תמיד להיכנס לשורה אחת בלי לגלוש החוצה (בעיקר כפתור התפריט ☰,
   שבמכשירים צרים היה נדחק מחוץ למסך). הלוגואים מתכווצים פרופורציונלית לפי מקום פנוי;
   הכפתורים הקטנים (רענון/שפה/תפריט) נשארים תמיד בגודל קבוע וניתנים ללחיצה */
.mobile-top-bar {
    flex-wrap: nowrap;
    gap: 0.1px !important;
    padding-inline: 2px;
}

    .mobile-top-bar .project-logo,
    .mobile-top-bar .amerlogo {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 50vw;
        width: auto;
        height: auto;
        max-height: 40px;
        object-fit: contain;
    }

    .mobile-top-bar .mobile-top-bar-shrink,
    .mobile-top-bar .mobile-refresh-btn,
    .mobile-top-bar .mobile-lang-ddl,
    .mobile-top-bar .mobileMenubtn {
        flex-shrink: 0;
    }

    .mobile-top-bar .mobile-refresh-btn {
        padding: 4px 4px !important;
    }

    .mobile-top-bar .mobileMenubtn {
        padding: 4px 8px;
    }

.details-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    padding: 28px;
    margin-bottom: 24px;
}
.settings-hero {
    background: linear-gradient(135deg, #3ae5e54d 0%, #2c49d5b8 100%);
    border-radius: 16px;
    color: white;
    padding: 28px;
    margin-bottom: 24px;
}

.hero-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.info-card {
    border-radius: 14px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 100%;
}

    .info-card .card-header {
        border-radius: 14px 14px 0 0;
        font-weight: 700;
        font-size: 1rem;
        padding: 12px 18px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .info-card .card-body {
        padding: 16px 18px;
    }

.info-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

    .info-row .lbl {
        font-size: 0.72rem;
        color: #888;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .info-row .val {
        font-size: 0.97rem;
        color: #222;
        font-weight: 500;
    }

.hdr-child {
    background: linear-gradient(135deg,#4facfe,#00f2fe);
    color: black;
}

.hdr-parents {
    background: linear-gradient(135deg,#a18cd1,#fbc2eb);
    color: black;
}
.hdr-sms {
    background: linear-gradient(135deg, #ffc107, #4be938e6);
    color: black;
}

.hdr-address {
    background: linear-gradient(135deg,#43e97b,#38f9d7);
    color: #fff;
}

.hdr-medical {
    background: linear-gradient(135deg, #3de982, #fef151eb);
    color: black;
}
.hdr-attendance {
    background: linear-gradient(135deg, #d9f762, #074924f2);
    color: #fff;
}

.hdr-payment {
    background: linear-gradient(135deg, #d23ce3, #0d6efd8f);
    color: black;
}

.hdr-link {
    background: linear-gradient(135deg,#fda085,#f6d365);
    color: #fff;
}

.hdr-checks {
    background: linear-gradient(135deg,#0f9b8e,#11998e);
    color: #fff;
}
.hdr-general {
    background: linear-gradient(135deg, #e732326e, #ffc107);
    color: black;
}
.hdr-documents {
    background: linear-gradient(135deg, #1ee96661, #0ce3cfe0);
    color: black;
}
.hdr-registration {
    background: linear-gradient(135deg, #9b1ee961, #eb2de5e0);
    color: black;
}
.hdr-navigation {
    background: linear-gradient(135deg, #11ebaf61, #e0e30ce0);
    color: black;
}

.payment-row-planned {
    background: #fffde7;
}

    .payment-row-planned.closed {
        background: #f1f8e9;
    }

.payment-row-regular {
    background: #fff;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.status-form-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width:767px) {
    .details-hero {
        padding: 18px;
    }

    .hero-photo {
        width: 80px;
        height: 80px;
    }
}

.employeeimage {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 6px;
    vertical-align: middle;
}

@media (max-width:767px) {
    .employeeimage {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        margin-left: 6px;
        vertical-align: middle;
    }
}

.card {
    --bs-card-spacer-y:0 !important;
    --bs-card-spacer-x:0 !important;

}

/* ===== Language dropdown switcher ===== */
.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
    image-rendering: -webkit-optimize-contrast;
}

.flag-icon-desktop {
    width: 24px;
    height: 1.1rem;
}

.mobile-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    white-space: nowrap;
    border: none !important;
}

.mobile-lang-menu .mobile-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-ddl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    white-space: nowrap;
}

.lang-ddl-text {
    font-size: 14px;
}

.lang-ddl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

.rf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 767.98px) {
    .rf-grid {
        grid-template-columns: 1fr;
    }
}

.rf-item {
    text-align: start;
}

    .rf-item .form-label,
    .rf-item .form-control {
        text-align: start;
    }

.rf-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .rf-check label {
        margin: 0;
        text-align: start;
    }


.me-auto {
    margin-inline-end: auto !important;
}