﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

html, body {
    direction: rtl;
    text-align: right;
}

.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: 50px; /* Ensures images fit inside navbar */
        width: auto; /* Maintain aspect ratio */
    }

.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;
}


.nav-button {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    border-color: lightgray;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 25px;
}

    .nav-button.active {
        background-color: #16a8bf66; /* כתום */
        color: black;
        font-size: 25px;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .nav-button:hover {
        background-color: white;
        font-size: 25px;
        font-weight: bold;
    }
#fixedButtonsContainer {
    display: flex;
    justify-content: space-between; /* הכפתורים מימין, הטקסט והכפתור משמאל */
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close {
    font-size: 32px;
    color: black;
    font-weight: bold;
}
.ls-black-btn {
    font-size: 20px;
    border-radius: 10px;
    border: ridge;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 40px;
    padding: 5px 5px;
    float: right;
    position: relative;
    background-color: white;
    color: black;
    outline: none !important;
}

    .ls-black-btn:hover,
    .ls-black-btn:active,
    .ls-black-btn:focus {
        border-radius: 10px;
        border: ridge;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-right: 40px;
        padding: 5px 5px;
        float: right;
        position: relative;
        background: #cccccc;
        color: white;
        outline: none !important;
    }

.input-text {
    border: none;
    background: transparent;
    border-bottom: 1px solid #000;
    outline: none;
    height: 60px;
    width: 90%;
    font-size: 20px;
    color: black;
    font-weight: bold;
    text-align: right;
}

.ddl-dynamic {
    border: none;
    background: transparent;
    border-bottom: 1px solid #000;
    outline: none;
    height: 60px;
    width: 90%;
    font-size: 20px;
    color: black;
    font-weight: bold;
    text-align: right;
}
h2 {
    font-size: 20px;
    color: darkblue;
}

h5 {
    font-size: 25px;
    color: darkblue;
    font-weight: bold;
    text-align: center;
}
h51 {
    text-decoration-line: none;
    font-size: 22px;
    color: black;
    font-weight: bold;
}

h51blue {
    text-decoration-line: none;
    font-size: 22px;
    color: blue;
    font-weight: bold;
}

h51red {
    text-decoration-line: none;
    font-size: 22px;
    color: red;
    font-weight: bold;
}

h51 .colorPurple {
    color: #d7275ff5;
    font-size: 22px;
}

h51 .colorBrown {
    color: brown;
}

h51 .colorGreen {
    color: green;
}

h51 .colorYellow {
    color: red;
}

h51 .colorBlue {
    color: blue;
}
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: darkblue;
        padding: 5px 10px;
        margin: 0 0 10px 0;
        line-height: 24px;
    }
h55 {
    font: bold 30px 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 28px sans-serif;
    text-transform: uppercase;
    color: darkblue;
    padding: 5px 10px;
    margin: 0 0 10px 0;
    line-height: 24px;
}
h6 {
    font-size: 25px;
    color: darkblue;
    font-weight: bold;
    text-align: right;
}
.col-md-12Border {
    float: right;
    position: relative;
    min-height: 0px;
    margin-top: 10px;
    width: 100%;
    background-color: #a78f1908;
    border: 3px solid #ccc;
    border-color: lightgrey;
    border-radius: 5px;
    padding-bottom: 15px;
    padding-top: 15px;
    padding-right: 15px;
    padding-left: 15px;
}
.col-md-1 {
    float: right;
    position: relative;
    min-height: 0px;
    margin: auto;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 0px;
    width: 8.33%;
}
.col-md-22 {
    float: right;
    position: relative;
    min-height: 0px;
    margin: auto;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 0px;
    width: 18%;
}
.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-4 {
    float: right;
    position: relative;
    min-height: 0px;
    margin: auto;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 0px;
    width: 32%;
}
.col-md-45 {
    float: right;
    position: relative;
    min-height: 300px;
    margin: auto;
    margin-left: 15px;
    margin-top: 15px;
    margin-bottom: 0px;
    width: 47%;
    background-color: white;
    border: solid;
    border-color: lightblue;
    border-radius: 15px;
}
.col-md-5 {
    float: right;
    position: relative;
    min-height: 0px;
    margin: auto;
    margin-right: 20px;
    margin-left: 0px;
    margin-top: 15px;
    margin-bottom: 20px;
    width: 5%;
    height: 100%;
    background-color: white;
}
.col-md-50 {
    float: right;
    position: relative;
    min-height: 0px;
    margin: auto;
    margin-right: 20px;
    margin-left: 0px;
    margin-top: 15px;
    margin-bottom: 20px;
    width: 45%;
    height: 350px;
    background-color: white;
}
.col-md-6 {
    float: right;
    position: relative;
    min-height: 1px;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 0px;
    width: 50%;
}
.col-md-80 {
    float: right;
    position: relative;
    min-height: 0px;
    margin: auto;
    margin-right: 2.5%;
    margin-left: 2.5%;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 95%;
    background-color: white;
    border: solid;
    border-color: lightgrey;
    border-radius: 15px;
    padding: 5px 5px;
}
.col-md-90 {
    float: right;
    position: relative;
    min-height: 0px;
    margin: auto;
    margin-right: 20px;
    margin-left: 0px;
    margin-top: 15px;
    margin-bottom: 20px;
    width: 90%;
    height: 100%;
    background-color: white;
}
.addborder {
    border: 3px solid #ccc;
    border-color: lightgrey;
    border-radius: 5px;
    /*padding-bottom: 15px;
    padding-top: 15px;
    padding-right: 15px;
    padding-left: 15px;*/
}
.responsive-table {
    font-size: 22px;
    li

{
    border-radius: 3px;
    padding: 5px 5px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.table-header {
    background-color: #95A5A6;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    overflow: visible;
    min-height: 60px;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 1000;
}

.table-row {
    background-color: #ffffff;
    box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.1);
    font-size: 100%;
    color: darkblue;
    font-weight: normal;
    text-align: right;
}

/* שמירה על רוחב עמודות קבוע ושבירת טקסט במקרה של תוכן ארוך */
[class^="col-"] {
    flex-basis: auto; /* מונע שינוי גודל של העמודות */
    white-space: normal; /* מאפשר ירידת טקסט לשורה הבאה */
    word-wrap: break-word; /* מפצל מילים ארוכות */
    overflow-wrap: break-word; /* עוזר למנוע חיתוך טקסט */
    text-align: right;
    flex-grow: 0; /* מונע מתיחת עמודות */
    flex-shrink: 0; /* מונע הקטנת עמודות */
}

/* הגדרות רוחב יחסיות לפי אחוזים */
.col-05 {
    flex-basis: 5%;
}

.col-01 {
    flex-basis: 1%;
}

.col-1 {
    flex-basis: 3%;
}

.col-10 {
    flex-basis: 10%;
}

.col-2 {
    flex-basis: 18%;
}

.col-3 {
    flex-basis: 40%;
}

.col-4 {
    flex-basis: 25%;
}

.col-5 {
    flex-basis: 5%;
}

.col-7 {
    flex-basis: 7%;
}

.col-20 {
    flex-basis: 20%;
}

.col-25 {
    flex-basis: 25%;
}

.col-30 {
    flex-basis: 30%;
}

.col-60 {
    flex-basis: 60%;
}

.col-80 {
    flex-basis: 80%;
}

.col-100 {
    flex-basis: 100%;
}

/* התאמות לתצוגה במובייל */
@media all and (max-width: 767px) {
    .table-header {
        display: none;
    }

    li {
        display: block;
    }

    .col {
        flex-basis: 100%;
    }

    .col {
        display: flex;
        padding: 10px 10px;
        &:before

{
    color: #6C7A89;
    padding-right: 10px;
    content: attr(data-label);
    flex-basis: 50%;
    text-align: right;
}

}
}
}
.responsive-table-small {
    font-size: 20px;
    li

{
    border-radius: 3px;
    padding: 5px 5px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    text-align: right;
    direction: rtl;
}

.table-header {
    background-color: #626f3e52;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    overflow: visible;
    min-height: 60px;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 1000;
}

.table-row {
    background-color: #ffffff;
    box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.1);
    font-size: 100%;
    color: darkblue;
    font-weight: normal;
    overflow: visible;
    min-height: 60px;
}

.col-10 {
    flex-basis: 10%;
}


.col-3 {
    flex-basis: 40%;
}

.col-25 {
    flex-basis: 25%;
}

.col-30 {
    flex-basis: 30%;
}

.col-4 {
    flex-basis: 25%;
}

.col-5 {
    flex-basis: 50%;
}

.col-7 {
    flex-basis: 7%;
}

.col-20 {
    flex-basis: 20%;
}

.col-100 {
    flex-basis: 100%;
}

@media all and (max-width: 767px) {
    .table-header {
        display: none;
    }

    .table-row {
    }

    li {
        display: block;
    }

    .col {
        flex-basis: 100%;
    }

    .col {
        display: flex;
        padding: 10px 10px;
        &:before

{
    color: #6C7A89;
    padding-right: 10px;
    content: attr(data-label);
    flex-basis: 50%;
    text-align: right;
}

}
}
}

.responsive-table-totals {
    font-size: 23px;
    li{
    border-radius: 3px;
    padding: 5px 5px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    text-align: right;
    direction: rtl;
    }

.table-header {
    background-color: #552c087a;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    overflow: visible;
    min-height: 60px;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 1000;
}

.table-row {
    background-color: #ffffff;
    box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.1);
    font-size: 100%;
    color: darkblue;
    font-weight: bold;
    overflow: visible;
    min-height: 60px;
}
.col {
    flex: 1; /* כל עמודה מקבלת יחס שווה */
    text-align: center;
}
.col-10 {
    flex-basis: 10%;
}


.col-3 {
    flex-basis: 40%;
}

.col-25 {
    flex-basis: 25%;
}

.col-30 {
    flex-basis: 30%;
}

.col-4 {
    flex-basis: 25%;
}

.col-5 {
    flex-basis: 50%;
}

.col-7 {
    flex-basis: 7%;
}

.col-20 {
    flex-basis: 20%;
}

.col-100 {
    flex-basis: 100%;
}

@media all and (max-width: 767px) {
    .table-header {
        display: none;
    }

    .table-row {
    }

    li {
        display: block;
    }

    .col {
        flex-basis: 100%;
    }

    .col {
        display: flex;
        padding: 10px 10px;
        &:before

{
    color: #6C7A89;
    padding-right: 10px;
    content: attr(data-label);
    flex-basis: 50%;
    text-align: right;
}

}
}
}

/* Flatpickr – הגדלת פונט ומראה מודרני */
.flatpickr-calendar {
    font-size: 22px !important;
    transform: scale(1.35);
    transform-origin: top right;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.flatpickr-months,
.flatpickr-current-month {
    padding: 5px 0;
    font-size: 20px !important;
}

/* ימים – שומרים על הגודל הכללי */
.flatpickr-day {
    font-size: inherit !important;
}

/* Employees - WorkHours Table - Start */

/* הגדרה ראשית של הטבלה */
.table {
    width: 100%;
    border-collapse: collapse; /* הכרחי למניעת רווחים בין התאים */
    table-layout: fixed; /* עוזר בשמירת הרוחב הנכון */
}

/* לוודא שהטבלה ניתנת לגלילה */
.table-container {
    width: 100%;
    max-height: 1000px; /* ניתן לשנות את הערך בהתאם לצורך */
    overflow: auto;
    position: relative;
    border: 1px solid #ddd;
}
/* קיבוע כותרת עליונה */
thead th {
    position: sticky;
    top: 0;
    background: #A0E7E5 !important; /* צבע רקע כדי לוודא שלא יהיה שקוף */
    z-index: 20; /* לוודא שהוא מעל התוכן */
    border-bottom: 2px solid #ccc;
    width: 150px;
    text-align: center;
}

    tbody td:first-child, thead th:first-child {
        position: sticky !important;
        right: 0;
        /* top: 0;*/
        background: white !important; /* ודא שיש צבע רקע */
        z-index: 30; /* חייב להיות יותר גבוה מהכותרת */
        width: 150px;
        text-align: center;
        border-right: 2px solid #ccc;
        border-left: 2px solid #ccc;
    }
    /* קיבוע גם את ה- th של העמודה הראשונה */
    thead th:first-child {
        position: sticky;
        right: 0;
        top: 0;
        background: #A0E7E5 !important; /* צבע הכותרת */
        z-index: 35; /* יותר גבוה משאר התוכן */
        border-left: 2px solid #ccc;
    }

tbody td {
    width: 150px;
}
/*  1 - עיצוב התא */
/* עיצוב התא */
.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; /* סימון שהתא לחיץ */
}

/* עיצוב הטקסט */
.time-entry {
    font-weight: bold;
    color: #007bff; /* כחול מודגש */
}

.time-exit {
    font-weight: bold;
    color: #ff5733; /* אדום מודגש */
}

/* אייקון מיקום */
.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; /* להפוך ללחיץ */
}
/* אייקון במקום מיקום */
.nolocation-space {
    display: inline-block;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}
/* start 2 - עיצוב התא */

.work-hour-container {
    /*  display: flex;*/
    flex-direction: column; /* כל ערך יוצג בשורה נפרדת */
    align-items: flex-start;
    padding: 5px;
    
    line-height: 1.6;
}

.entry, .exit {
    display: flex;
    align-items: center;
    gap: 5px; /* ריווח בין הטקסט לבין האייקון */
}

.time {
    font-weight: bold;
    color: #2d2d2d;
}

/*.location-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}*/
/* end 2 - עיצוב התא */


.input-container {
    display: flex;
    align-items: center; /* מוודא שהשדות יישרו באמצע אנכית */
    gap: 5px; /* רווח בין השדות */
}
.equal-height-row > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.vertical-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: bold;
    font-size: 23px;
    text-align: center;
    white-space: nowrap;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 10px;
    text-transform: uppercase;
    background-color: powderblue;
    color: black;
    padding: 5px 10px;
    margin: 0 0 10px 0;
    line-height: 24px;
}

.equal-row > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}