/***************** General Styles *********************/
body {
    Font-family: Calibri, Verdana, Ariel, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
	direction: rtl;
}

html, body {
    height: 100%;
}
* {
    margin: 0;
}

a {
    color : #FFFFFF;
    text-decoration: none;
    outline: 0;
}

a:hover {
    text-decoration: none;
}

img {
    border: 0px;
}

fieldset {
    border-radius: 5px;
    border: 1px solid #ddd;
}

legend {
    font-weight: bold;
}

div, p, a, li, td { -webkit-text-size-adjust:none; }

textarea {
    resize: none;
}

hr.thinLine {
    height: 1px;
    color: #ddd;
    background-color: #ddd;
    border-width: 0;
}

.denied {
	text-align: center;
	padding: 20px;
}

.blue {
    color:#5f87ae; 
    font-weight:bold; 
    padding-bottom:12px; 
}

h2.left {
    position: relative;
    text-align:left;
    width: 50%;
    font-size: 1.5em;
    font-weight: bold;
    padding: 6px 20px 6px 71px;
    margin: 10px 10px 10px -30px;
    color: #fff;
    text-shadow: 0px -1px 1px #000;
    background-color: #3e4750;

    background-image: linear-gradient(right top, rgb(196,196,196) 13%, rgb(62,71,80) 95%);
    background-image: -o-linear-gradient(right top, rgb(196,196,196) 13%, rgb(62,71,80) 95%);
    background-image: -moz-linear-gradient(right top, rgb(196,196,196) 13%, rgb(62,71,80) 95%);
    background-image: -webkit-linear-gradient(right top, rgb(196,196,196) 13%, rgb(62,71,80) 95%);
    background-image: -ms-linear-gradient(right top, rgb(196,196,196) 13%, rgb(62,71,80) 95%);

    background-image: -webkit-gradient(
        linear,
        right top,
        left bottom,
        color-stop(0.13, rgb(196,196,196)),
        color-stop(0.95, rgb(62,71,80))
    );

    border-bottom: 1px solid #000;
    box-shadow: 0 4px 4px -2px #000000;
    white-space: nowrap;
}

h2.left:before, h2.left:after {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
}

h2.left:before {
    width: 30px;
    left: -30px;
    top: 12px;
    border-width: 20px 10px;
    border-style: solid;
    border-color: #999 #999 #999 transparent;
}

h2.left:before {
    width: 0px;
    left: auto;
    right: -2px;
    top: 0px;
    border-color: transparent #fff transparent transparent;
}

h2:after {
    left: 0px;
    top: 100%;
    border-width: 5px 10px;
    border-style: solid;
    border-color: #222 #222 transparent transparent;
}

.logo {
    position: absolute;
    top: 2px;
    left: 10px;
}

.topList {
    position: absolute;
    right: 20px;
    top: 10px;
    width: 700px;
    text-align: right;
    vertical-align:bottom;
}

.topList ul {
    white-space: nowrap;
}

.topList li {
    display:inline;
    padding-right: 5px;
    line-height: 50px;
    height: 50px;
    vertical-align:middle;
    font-size: 14px;
}

.topList a {
    font-size: 18px;
    color: #fff;
    text-shadow: 0px -1px 1px #000;
}
.topList a:hover {
    color: #5f87ae;
    text-shadow: 0px -1px 1px #000;
}

/*
.topList .selectedP {
    color: #5f87ae;
    text-shadow: 0px -1px 1px #000;
}
*/
.wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -4em;
}

.footer, .push {
    height: 3em;
}

.outer {
    padding: 20px;
    text-align:center;
}
/*
.topBanner {
    padding: 5px;
    border: 1px solid #111;
    background-color: #303842;

}
*/
.hello {
    position:absolute;
    top: 30px;
    left: 300px;
    color: #42c3e0;
}
.setupDiv {
    margin-top: 50px;
    width: 500px;
    border: 2px solid #777;
    border-radius: 5px;
    padding: 10px;
    display:inline-block;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.loginDiv {
    margin-top: 50px;
    width: 320px;
    border: 2px solid #777;
    border-radius: 5px;
    padding: 10px;
    display:inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* Input fields */
.lnField {
    width: 100px;
    padding:10px;
    margin:5px 0 5px 0;
    border: 1px solid #788fa2;
    border-radius:5px;
}

.lnDesc {
    width: 200px;
    padding:10px;
    margin:5px 0 5px 0;
    border: 1px solid #788fa2;
    border-radius:5px;
}       

.selectDrop {
    width: 142px;
}

.warning {
    display: none;
    color: #5f87ae;
    width: 70px;
    white-space: nowrap;
}
.response {
    color: red;
    padding-right: 50px;
}

.centerImg {
    vertical-align: middle;
}

.footer {
    text-align:center;
    padding:15px;
    background-color: #303842;
    border-top: 1px solid #111;
    clear: both;
	color: white;
}

.hidden {
    display: none;
}

/** Leads table **/
.statusSelect {
    text-align: right;
} 

.statusSelect a {
    color: #5f87ae;
    text-shadow: 0px -1px 1px #000;
}

.statusSelect ul {
    background-color: #303842;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #555;
}

.statusSelect li:hover a {
    color: #fff;
    background-color: #5f87ae;
    box-shadow: 2px 0px 16px rgba(0,0,0,0.7) inset;
}

.statusSelect .selected {
    color: #fff;
    box-shadow: 2px 0px 16px rgba(0,0,0,0.7) inset;
}

.statusSelect li a {
    padding: 10px;
    margin-right: -10px;
    margin-left: -10px;
}
 
.statusSelect li:last-child {
    border: 0px;
}

/* Fix this for ipad/android links */
.statusSelect li {
    display:inline;
    list-style-type:none;
    border-left: 1px solid #555;
    font-size: 16px;
    margin: 0 0 0 -4px;
    padding: 10px;
    line-height: 39px;
}

.leadsMenu {
    text-align: right;
    font-size: 16px;
    font-weight: bold;
}

.leadsTitle {
    display: inline-block;
}
.addNewSpan {
    margin-left: 30px;
    display: inline-block;
}
.paginate {
    margin-left: 30px;
    margin-bottom: 5px;
    display: inline-block;
}

.allLeadsHolder {
    overflow: auto;
}

.allLeads {
    margin-top: 5px;
    border-collapse: collapse;
    width: 100%;
}

.allLeads a {
    color: #3e4750;
}

.allLeads td {
    padding: 5px;
    text-align: right;
    border: 1px solid #bbb;
}

.allLeads th {
    padding: 10px;
    background-color: #3e4750;
    border: 1px solid #333;
}

.searchLeads {
    margin-left: 30px;
    display: inline-block;
}

.topRow {
}

.viewLead {
    font-weight: bold;
    font-size: 16px;
}

.viewLead:hover {
    color: #5f87ae;
}

.allLeads th a {
    color: #fff;
    text-shadow: 0px -1px 1px #000;
}

.allLeads th a:hover {
    color: #ddd;
}

.allLeads th img {
    vertical-align: middle;
}

tr.trClass0 td {
    background-color: #e4efe1; 
    color: #000000 !important;
}
tr.trClass1 td {
    background-color: #eff5f5; 
    color: #000000 !important;
}
/** End Leads table **/

.leadField {
    width: 100px;
    white-space: nowrap;
}

.secCol {
    white-space: nowrap;
}

table.contactInfo td {
    padding: 2px;
}

table.leadAddress td {
    padding: 2px;
}

table.leadCategory td {
    padding: 2px;
}

/***************** End General Styles *********************/


/*****************  Buttons  *********************/

.buttonRow {
    margin: 50px 0 10px 0;
    display:block;
    text-align:right;
}
.buttons, .buttons:visited {
    background: #222 url(img/overlay.png) repeat-x;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.6);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
    border: 1px solid #777;
    position: relative;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 14px 9px;
}

.smallButtons, .smallButtons:visited {
    background: #222 url(img/overlay.png) repeat-x;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.6);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
    border: 1px solid #777;
    position: relative;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 7px 5px;
}

.buttons:active, .smallButtons:active {
    top: 1px;
}

.greenButton, .greenButton:visited        { background-color: #64b252; }
.greenButton:hover                        { background-color: #569a46; }
.redButton, .redButton:visited            { background-color: #e62727; }
.redButton:hover                          { background-color: #cf2525; }
.orangeButton, .orangeButton:visited      { background-color: #ff5c00; }
.orangeButton:hover                       { background-color: #d45500; }
.blueButton, .blueButton:visited          { background-color: #2981e4; }
.blueButton:hover                         { background-color: #2575cf; }
.yellowButton, .yellowButton:visited      { background-color: #ffb515; }
.yellowButton:hover                       { background-color: #fc9200; }
.blackButton, .blackButton:visited        { background-color: #333;}
.blackButton:hover                        { background-color: #222;}

/*****************  End Buttons  *********************/

/***************** Modal - Fixed *********************/
#simplemodal-container {
    width: 750px !important; /* רוחב נוח למחשב */
    background-color: #2c333a !important; 
    border: 1px solid #5f87ae !important; 
    padding: 15px !important;
    border-radius: 10px !important;
    direction: rtl;
	color: white;
}

#simplemodal-container a.modalCloseImg {
    background: url(img/x.png) no-repeat !important;
    width: 25px; height: 29px;
    display: inline;
    z-index: 3300;
    position: absolute;
    top: -15px; left: -15px; /* ה-X חוזר לפינה החיצונית */
    cursor: pointer;
}

/* צביעת כל הטקסט בתוך טבלאות הפופ-אפ ללבן */
#simplemodal-container td, 
#simplemodal-container td.leadLabel,
#simplemodal-container .contactInfo td {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* תיקון ספציפי לטקסט שליד הצ'קבוקס "הוסף מייל" */
#simplemodal-container .contactInfo tr:last-child td {
    color: #ffffff !important;
}

.leadLabel {
    color: #ffffff !important; /* לבן בוהק */
    font-size: 14px !important;
    text-align: left !important; /* יישור טקסט לצד השדה */
    padding: 5px !important;
    font-weight: bold !important;
    width: 120px !important; /* התאמה לטקסט בעברית */
}

.modalH {
    color: #ffffff !important; 
    padding: 0 0 15px 0 !important;
    font-weight: bold; 
    text-align: center;
    font-size: 24px;
    border-bottom: 2px solid #444;
    margin-bottom: 25px;
}

.modalH2 {
    color: #000000 !important; 
    padding: 0 0 15px 0 !important;
    font-weight: bold; 
    text-align: center;
    font-size: 24px;
    border-bottom: 2px solid #444;
    margin-bottom: 25px;
}

/* צבע כותרות הקבוצות (legend) ללבן */
#simplemodal-container legend {
    font-weight: bold !important;
    color: #ffffff !important; /* שונה ללבן */
    padding: 0 15px !important;
    font-size: 18px !important;
    background-color: #2c333a; 
}

/* מרכוז שורת הכפתורים */
.buttonRow {
    margin-top: 25px !important;
    text-align: center !important; /* מרכוז לאמצע */
    width: 100% !important;
    display: block !important;
}

/* עיצוב כפתורים צמודים */
.buttonRow button {
    margin: 0 10px !important; /* רווח שווה בין הכפתורים */
    min-width: 100px !important;
}

#simplemodal-container input[type="text"], #simplemodal-container select {
    width: 160px !important; /* גודל שדות קלאסי למחשב */
}
/***************** End Modal *********************/

/*****************  pagination style  **************/

.pagin {
padding: 2px 2px;
margin: 0;
font-family: "Verdana", sans-serif;
font-size: 7pt;
font-weight: bold;
}
.pagin * {
padding: 2px 6px;
margin: 0;
}
.pagin a {
border: solid 1px #666666;
background-color: #EFEFEF;
color: #666666;
text-decoration: none;
}
.pagin a:visited {
border: solid 1px #666666;
background-color: #EFEFEF;
color: #60606F;
text-decoration: none;
}
.pagin a:hover, .pagin a:active {
border: solid 1px #CC0000;
background-color: white;
color: #CC0000;
text-decoration: none;
}
.pagin span {
cursor: default;
border: solid 1px #808080;
background-color: #F0F0F0;
color: #B0B0B0;
}
.pagin span.current {
border: solid 1px #666666;
background-color: #666666;
color: white;
}

/*****************  End pagination style  ***********/

/*****************  Individual Lead  *********************/

.backLink {
    text-align:left;
}

.individualDiv {
}
.leadDetails {
    float:left;
    width: 350px;
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    box-shadow:0 1px 4px #555555, 0 0 40px rgba(0, 0, 0, 0.1) inset;
    border: 1px solid #777;
    text-align: left;
}

.leadNotes {
    margin: 10px;
    padding: 10px;
    width: 500px;
    text-align: right;
    float: left;
	direction: rtl;
}

.userData {
    font-size: 11px;
    padding: 5px;
}

table.individualLead {
    padding: 10px;    
}

.leadData {
    text-align: left;
    padding: 5px;
}

.leadLabel {
    text-align: left;
    padding: 5px;
    font-weight: bold;
}

.noteContent {
    margin: 10px 0 10px 0;
}

.userHighlight {
    color: #5f87ae;
}

.smallFont {
    color: #5f87ae;
    font-size: 11px;
}

.secTitle {
    color: #555;
}

/*****************  End Individual Lead  *****************/

/***************** Config Page ***************************/
.results {
    width:100%;
    text-align: left;
}

.configLeft {
    float:right;
    text-align: right;
}

.configRight {
    padding: 20px;
    float:right;
    text-align: right;
}

.currentUsers td {
    padding: 5px;
}

.currentUsers td {
    padding: 5px;
}

#imports {
    text-align: left;
}

#imports a {
    color: #5f87ae;
}    

#exports {
    text-align: left;
}

#tabs a {
    color : #569a46;
}

.matchData {
    float: left;
    margin: 10px;
}

.matchData td {
    border: 2px solid #569a46;  /* Green */
    padding: 3px;
    line-height: 25px;
    height: 25px;
}

.sortData {
    float: left;
    margin: 10px;
}
.sortData td {
    line-height: 25px;
    height: 25px;
}

.sortData td:hover {
    cursor: pointer;
}

.sortName {
    margin-left: 10px;
}

.sortEntry {
    background-color: #bbb;
    border: 2px solid #555;
    padding: 3px;
}

.blankData {
    background-color: #eee;
    border: 2px solid #555;
    padding: 3px;
}

.addBlankCol {
    float: left;
    margin: 10px;
}

.afterData {
    clear: both;
}

table.logs {
    padding: 5px;
    border-collapse: collapse;
}

table.logs td {
    padding: 5px;
}


.pagingHolder {
    float: left;
    position: relative;
}

.searchLogDiv {
    margin-left: 20px;
    float: left;
    position: relative;
}

.clearBoth {
    clear: both;
}

.goSearchLog {
    margin-left: 10px;
}


#sortableCols { 
    list-style-type: none; 
    margin: 0; 
    padding: 5px;
    width: 1000px;
    border: 1px solid #000;
    height: 150px;
}

#sortableCols li { 
    margin: 3px 3px 3px 0; 
    padding: 5px 1px 5px 1px; 
    float: left; 
    width: 150px; 
    text-align: center; 
    background-color: #303842;
    border: 1px solid #333;
    color: #5f87ae;
    text-shadow: 0px -1px 1px #000;
}

#sortableCols li:hover {
    color: #fff;
    background-color: #5f87ae;
    box-shadow: 2px 0px 16px rgba(0,0,0,0.7) inset;
}

#sortableCols2 {
    list-style-type: none;
    margin: 0;
    padding: 5px;
    width: 1000px;
    border: 1px solid #000;
    height: 150px;
}

#sortableCols2 li {
    margin: 3px 3px 3px 0;
    padding: 5px 1px 5px 1px;
    float: left;
    width: 150px;
    text-align: center;
    background-color: #777;
    border: 1px solid #333;
    color: #fff;
    text-shadow: 0px -1px 1px #000;
}

#sortableCols2 li:hover {
    color: #fff;
    background-color: #5f87ae;
    box-shadow: 2px 0px 16px rgba(0,0,0,0.7) inset;
}

.fieldNames td {
    padding-left: 20px;
}

span.fieldNameC {
    display:inline-block;
    width: 75px;
}
    

/***************** End Config Page ***********************/

/***************** Statistics Page ***************************/
.statistics {
    text-align: left;
}
.statsSec {
    /*background-color: #555;*/
    height: 325px;
    width: 850px;
    box-shadow:0 1px 4px #555555, 0 0 40px rgba(0, 0, 0, 0.1) inset;
    border-radius: 5px;
    border: 1px solid #333;
    margin:20px;
    padding:10px;
}

#leadSourceChart {
    float: left;
    width : 500px;
    height: 250px;
    margin: 8px auto;
    border-radius: 5px;
}


#leadTypeChart {
    float: left;
    width : 500px;
    height: 250px;
    margin: 8px auto;
    border-radius: 5px;
}

#leadStatusChart {
    float: left;
    width : 500px;
    height: 250px;
    margin: 8px auto;
    border-radius: 5px;
}

#newLeadsMonth {
    float: left;
    width : 600px;
    height: 250px;
    margin: 8px auto;
    border-radius: 5px;
}

.leadList {
    width: 200px;
    height: 225px;
    overflow: auto;
    float: left;
    text-align:left;
    padding: 10px;
    margin: 10px;
}

.leadTable {
    padding: 5px;
}

/* =========================================
   הסתרת תפריט המובייל במסכים גדולים
========================================= */
@media screen and (min-width: 769px) {
    .mobile-app-header, .mobile-dropdown-menu {
        display: none !important;
    }
}

/**************************************************************
 * בלוק מובייל סופי ומעודכן - מדיה-נט
 * להחליף את כל קוד המובייל הקודם בזה
 **************************************************************/

@media screen and (max-width: 768px) {
	
/* =========================================
       עיצוב הידר אפליקציה למובייל (הכנסנו לתוך הבלוק הקיים)
    ========================================= */
    #simplemodal-container { width: 95% !important; left: 2.5% !important; }
    #simplemodal-container td { display: block !important; width: 100% !important; }
    #simplemodal-container input[type="text"], #simplemodal-container select { width: 100% !important; }
	
    /* 1. הסתרת הטבלה הישנה של הלוגו במובייל */
    .topBanner {
        display: none !important;
    }

    /* 2. עיצוב השורה העליונה החדשה (לוגו ימין, תפריט שמאל) */
    .mobile-app-header {
        display: flex !important;
        flex-direction: row-reverse; /* מכריח את הלוגו לשמאל והתפריט לימין */
        justify-content: space-between;
        align-items: center;
        background-color: #ffffff;
        padding: 10px 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08); 
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .mobile-logo img {
        height: 35px !important; 
        width: auto !important;
        display: block;
    }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 15px; /* מרווח בין הפרופיל להמבורגר */
    }

    .hamburger-btn, .mobile-profile-icon {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 3. עיצוב התפריט הנפתח */
    .mobile-dropdown-menu {
        display: none; /* מוסתר כברירת מחדל */
        background-color: #ffffff;
        position: fixed;
        top: 55px; /* מתחיל מיד מתחת להידר */
        right: 10px; /* צמוד לשמאל */
        width: 220px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        border-radius: 8px;
        z-index: 999;
        flex-direction: column;
        overflow: hidden;
    }

    /* הקלאס שמתווסף ברגע שלוחצים על ההמבורגר */
    .mobile-dropdown-menu.show {
        display: flex !important;
    }

    .mob-menu-greeting {
        padding: 15px 20px;
        background-color: #f8f9fa;
        color: #5c6b79;
        font-size: 14px;
        border-bottom: 1px solid #e1e4e8;
        text-align: right;
    }

    .mobile-dropdown-menu a {
        padding: 15px 20px;
        text-decoration: none;
        color: #3b444b;
        font-size: 16px;
        font-weight: bold;
        border-bottom: 1px solid #f1f1f1;
        text-align: right;
        display: block;
    }

    .mobile-dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .mobile-dropdown-menu a:hover, 
    .mobile-dropdown-menu a:active {
        background-color: #f8f9fa;
        color: #007bff;
    }
/* ========================================== */
	
/* =========================================
       עיצוב תפריט הסטטוסים - שורה אחת נגללת 
    ========================================= */
    .statusSelect {
        margin: 15px 0 0 !important;
        padding: 0 10px !important;
        text-align: right !important;
    }

    .statusSelect ul {
        display: flex !important;
        flex-wrap: nowrap !important; /* כופה על הכל להישאר בשורה אחת! */
        overflow-x: auto !important; /* מאפשר גלילה אופקית ימינה-שמאלה */
        -webkit-overflow-scrolling: touch !important; /* גלילה חלקה במכשירי מגע */
        gap: 8px !important; /* רווח מדויק בין הכפתורים */
        padding-bottom: 5px !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
        
        /* הסתרת פס הגלילה למראה נקי של אפליקציה */
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .statusSelect ul::-webkit-scrollbar {
        display: none !important;
    }

    .statusSelect li {
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important; /* מונע התכווצות כפתורים */
    }

    /* עיצוב הכפתור הרגיל (לא פעיל) */
    .statusSelect li a {
     /* display: block !important; */
        padding: 8px 16px !important;
        background-color: #ffffff !important;
        color: #000000 !important; 
        border: 1px solid #1c2b36 !important; 
        border-radius: 20px !important; 
        font-size: 15px !important;
        font-weight: bold !important;
        white-space: nowrap !important; 
        box-shadow: none !important; 
        text-shadow: none !important;
    }

    /* עיצוב הכפתור הפעיל (זה שלחצו עליו) */
    .statusSelect li:hover a,
    .statusSelect li a.selected {
        background-color: #2173d2 !important; 
        color: #ffffff !important; 
        border-color: #2173d2 !important;
    }
	

    /* --- 1. העלמה מוחלטת של המלבן האדום (כותרות הטבלה) --- */
    tr.topRow, 
    .allLeads thead, 
    .allLeads th,
    .allLeads .topRow {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* --- 2. תיקון ה-Header (לוגו וכפתורים) --- */
/* =========================================
    .topBanner {
        height: auto !important; 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 15px 0 !important;
        position: relative !important;
    }
========================================= */

    .logo {
        position: static !important; 
        margin-bottom: 5px !important;
        display: block !important;
    }

    .topList {
        position: static !important;
        width: 100% !important;
        text-align: center !important;
    }

    .topList ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .hello {
        position: static !important;
        margin: 10px 0 !important;
        display: block !important;
        left: auto !important;
    }

    /* --- 3. מבנה הכרטיסים של הלידים --- */
    .allLeads, .allLeads tbody, .allLeads tr, .allLeads td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .allLeads tr {
        margin-bottom: 20px !important;
        border: 1px solid #bbb !important;
        border-radius: 10px !important;
        background-color: #fff !important;
        padding: 10px !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
    }

    /* ניקוי שורות ריקות וצמצום רווחים מיותרים בכרטיס */
    .allLeads td {
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding: 6px 10px !important;
        text-align: right !important;
        min-height: auto !important;
    }

    /* מסתיר תאים שאין בהם תוכן (מונע שורות ריקות בכרטיס) */
    .allLeads td:empty {
        display: none !important;
    }

    /* עיצוב התא הראשון (השם והכפתורים) */
    .allLeads td:first-child {
    background: #f9f9f9 !important;
    border-bottom: 2px solid #eee !important;
    display: block !important;
    }

    /* --- 4. התאמת חלון עריכה (המודאל שבתמונה) למובייל --- */
    #simplemodal-container {
        width: 95% !important;
        left: 2.5% !important;
        top: 5% !important;
        height: auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        padding: 15px !important;
        background-color: #333 !important; /* שמירה על העיצוב הכהה שלך */
    }

    /* הפיכת שדות הטופס במודאל לשורה מלאה וגדולה */
    #simplemodal-container input[type="text"], 
    #simplemodal-container select {
        width: 100% !important;
        height: 45px !important;
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    #simplemodal-container td {
        display: block !important;
        width: 100% !important;
        text-align: right !important;
    }

    /* --- 5. סידור כפתורי החיפוש והוספת ליד --- */
    .addNewSpan, .paginate, .searchLeads {
        display: block !important;
        margin: 10px auto !important;
        text-align: center !important;
    }

    .searchText {
        width: 90% !important;
        font-size: 16px !important;
    }

/* --- 4. התאמת הפופ-אפ (Modal) למובייל --- */
    
    /* הפיכת מיכל המודאל לרספונסיבי */
    #simplemodal-container {
        width: 90% !important;
        left: 5% !important;
        top: 5% !important;
        height: auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important; /* מאפשר גלילה בתוך הפופ-אפ אם הוא ארוך */
        background-color: #333 !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    /* הפיכת הטבלאות בתוך המודאל לשורה אחת לכל שדה */
    #simplemodal-container table, 
    #simplemodal-container tbody, 
    #simplemodal-container tr, 
    #simplemodal-container td {
        display: block !important;
        width: 100% !important;
        text-align: right !important;
        box-sizing: border-box !important;
    }

    /* סידור תוויות השדות מעל שדות הקלט */
    #simplemodal-container td.leadLabel,
    #simplemodal-container td[align="right"] {
        padding-top: 10px !important;
        padding-bottom: 2px !important;
        color: #5f87ae !important; /* צבע כחול לתוויות שיהיה ברור */
    }

    /* הגדלת שדות הקלט והתאמתם למגע */
    #simplemodal-container input[type="text"], 
    #simplemodal-container select,
    #simplemodal-container textarea {
        width: 100% !important;
        height: 40px !important;
        font-size: 16px !important; /* מונע זום אוטומטי באייפון */
        margin-bottom: 5px !important;
        border-radius: 5px !important;
    }

    /* כפתורי שמירה וביטול - שיהיו גדולים ונוחים */
    .buttonRow {
        margin-top: 20px !important;
        text-align: center !important;
    }

    #simplemodal-container .greenButton, 
    #simplemodal-container .blueButton {
        width: 45% !important;
        padding: 12px 0 !important;
        font-size: 16px !important;
        margin: 5px !important;
        display: inline-block !important;
    }

    /* כפתור ה-X לסגירה */
    #simplemodal-container a.modalCloseImg {
        top: 5px !important;
        right: 5px !important;
    }
	
	/* --- התאמת דף lead.php למובייל --- */

	/* ביטול ה-Float וקביעת רוחב מלא לתיבות */
	.leadDetails, .leadNotes {
		float: none !important;
		width: 100% !important;
		margin: 10px 0 !important;
		padding: 10px !important;
		box-sizing: border-box !important;
		display: block !important;
	}

	/* התאמת הטבלה של פרטי הליד */
	table.individualLead {
		width: 100% !important;
		border-collapse: collapse;
	}

	table.individualLead td {
		display: table-cell !important; /* שמירה על מבנה טבלה אך התאמת רוחב */
		padding: 8px 4px !important;
	}

	/* מניעת שבירת מילים ארוכות (כמו מיילים) */
	.leadData {
		word-break: break-all !important;
	}

	/* התאמת אזור ההערות */
	.noteContent {
		font-size: 15px !important;
		line-height: 1.4 !important;
	}

	/* התאמת לינקים וכפתורים למגע אצבע */
	.userData a, .leadNotes a {
		display: inline-block;
		padding: 5px 0;
	}
	
	/* --- התאמת דף סטטיסטיקה stats.php למובייל --- */

	/* הגדרת המכולה הכללית של כל גרף */
	.statsSec {
		width: 95% !important;
		height: auto !important; /* מאפשר גובה גמיש לפי התוכן */
		margin: 15px auto !important;
		padding: 10px !important;
		float: none !important;
		display: block !important;
		box-sizing: border-box !important;
	}

	/* ביטול ה-float של הגרפים והטבלאות */
	#leadSourceChart, #leadTypeChart, #leadStatusChart, #newLeadsMonth, .leadList {
		float: none !important;
		width: 100% !important;
		margin: 10px 0 !important;
	}

	/* הגדרת גובה מינימלי לגרפים כדי שלא יתכווצו מדי */
	#leadSourceChart, #leadTypeChart, #leadStatusChart, #newLeadsMonth {
		height: 250px !important;
	}

	/* עיצוב הטבלאות לצד הגרפים */
	.leadList {
		max-height: none !important; /* ביטול הגבלת הגובה במובייל */
		overflow: visible !important;
	}

	.leadTable {
		width: 100% !important;
	}

	.leadTable td, .leadTable th {
		padding: 8px !important;
		text-align: right !important;
	}
	
	.leadList {
    height: auto !important;
	}
	
}

.mobileLeadButtons{
display:none;
}

.mobileAccordionToggle{
display:none;
}

@media screen and (max-width:768px){
	
/* 1. העלמת הכפתור האפור והרווחים המיותרים למעלה */
.loginDiv #loginLink, 
    body:has(.loginDiv) .topMenu {
        display: none !important;
    }

    .outer {
        padding-top: 0 !important;
        display: block !important;
    }

    /* 2. סידור תיבת הלוגין - מרכוז ורווחים */
    .loginDiv {
        width: 95% !important;
        margin: 10px auto !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        float: none !important; /* מבטל הצמדה לימין/שמאל */
    }

    /* 3. פירוק הטבלה - זה החלק הקריטי לתיקון מה שראינו בתמונה */
    table.login, 
    table.login tbody, 
    table.login tr, 
    table.login td {
        display: block !important; /* הופך כל תא לשורה נפרדת */
        width: 100% !important;
        text-align: right !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 4. עיצוב תוויות הטקסט (שם משתמש/סיסמא) */
    table.login td:first-child {
        font-weight: bold;
        margin-top: 10px !important;
        margin-bottom: 2px !important;
    }

    /* 5. סידור השדות - רוחב מלא וגובה נוח */
    .lnField {
        width: 100% !important;
        height: 45px !important;
        margin: 5px 0 10px 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* 6. כפתור התחברות רחב בתחתית התיבה */
    .buttonRow {
        text-align: center !important;
        margin-top: 15px !important;
    }

    .blueButton.loginSubmit {
        width: 100% !important;
        height: 50px !important;
        float: none !important;
        display: block !important;
    }

/* ביטול ה-margin הכללי שגורם לכפתור לצאת מהמרכז */
    .loginDiv .buttonRow button {
        margin: 15px 0 0 0 !important; /* רווח רק מלמעלה, אפס לצדדים */
        width: 100% !important; /* כפתור ברוחב מלא */
        min-width: 100% !important;
        float: none !important; /* ביטול הצמדה לימין/שמאל */
    }

    /* מרכוז הקונטיינר של הכפתור */
    .loginDiv .buttonRow {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        padding: 0 !important;
    }

.leadNameCell{
padding-bottom:14px !important;
}

.leadNameTop{
display:block !important;
font-size:0;
}

.mobileLeadButtons{
display:block !important;
width:100% !important;
box-sizing:border-box !important;
margin-top:14px !important;
padding-top:12px !important;
border-top:1px solid #e8e8e8 !important;
}

.leadButtonsRow1,
.leadButtonsRow2{
display:grid !important;
width:100% !important;
box-sizing:border-box !important;
}

.leadButtonsRow1{
grid-template-columns:repeat(3,1fr);
gap:10px;
margin-bottom:12px;
}

.leadButtonsRow2{
grid-template-columns:repeat(2,1fr);
gap:12px;
}

.leadBtn{
display:flex !important;
align-items:center !important;
justify-content:center !important;
width:100% !important;
padding:6px 8px !important;
border-radius:14px !important;
font-weight:700 !important;
font-size:14px !important;
text-decoration:none !important;
box-sizing:border-box !important;
}
	
/* בחירת הקישור שנמצא בתוך תא הטלפון בלבד */
.allLeads td[data-label="טלפון"] a {
        color: #007bff !important; /* כחול קישור */
        font-weight: bold !important;
        display: inline-flex !important;
        align-items: center;
        text-decoration: none !important; /* ביטול הקו הכללי של הקישור */
    }

    /* הוספת הקו התחתון רק למספר עצמו */
    .allLeads td[data-label="טלפון"] a:hover, 
    .allLeads td[data-label="טלפון"] a {
        border-bottom: 1px solid #007bff; /* יצירת "קו תחתון" ידני רק לטקסט */
        line-height: 1; /* מוודא שהקו צמוד למספר */
    }

    /* הוספת אייקון טלפון ללא קו תחתון */
    .allLeads td[data-label="טלפון"] a::after {
        content: "📞";
        margin-right: 8px;
        font-size: 14px;
        display: inline-block;
        border-bottom: none !important; /* מבטל את הקו התחתון מתחת לאייקון */
    }

.notesBtn{
background:#e8f3fb !important;
color:#1698d3 !important;
}

.editBtn{
background:#f6ead0 !important;
color:#b67b00 !important;
}

.deleteBtn{
background:#f7dede !important;
color:#c73d3d !important;
}
	
/* עיצוב כפתור וואטסאפ ליוזר */
.waBtn {
background: #25D366 !important; /* ירוק וואטסאפ */
color: #fff !important;
border: none !important;
}

.leadStatusBtn{
display:flex !important;
align-items:center !important;
justify-content:center !important;
width:100% !important;
padding:8px 10px !important;
border:none !important;
border-radius:999px !important;
font-size:16px !important;
font-weight:700 !important;
color:#fff !important;
box-sizing:border-box !important;
appearance:none !important;
-webkit-appearance:none !important;
}

.meetingBtn{
background:#efa62f !important;
}

.treatmentBtn{
background:#1696d2 !important;
}

.notRelevantBtn{
background:#e24a3a !important;
}

.dealBtn{
background:#39b54a !important;
}
	
.allLeads td[data-label]{
position:relative;
}

.allLeads td[data-label]::before{
content: attr(data-label) ":";
display:inline-block;
width:80px;
font-weight:700;
color:#1698d3;
margin-left:8px;
vertical-align:top;
}

.allLeads td[data-label] a{
display:inline-block;
vertical-align:top;
word-break:break-word;
}
	
.leadNameTop .addEditContact,
.leadNameTop .deleteLead{
display:none !important;
}
	
.leadNameCell{
white-space:nowrap;
}

.leadNameCell .leadNameTop{
display:inline !important;
}

.leadNameCell .viewLead{
display:inline !important;
white-space:nowrap;
}

.leadNameTop .addEditContact,
.leadNameTop .deleteLead{
display:none !important;
}
	
.allLeads td.mobile-extra-field{
display:none !important;
}

tr.mobile-open td.mobile-extra-field{
display:block !important;
}
	
.mobileAccordionToggle{
display:flex;
margin:12px auto 10px auto;
text-align:center;
color:#1698d3;
font-weight:700;
font-size:15px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
gap:6px;
}

.mobileAccordionToggle::after{
content:"▼";
font-size:11px;
transition:transform 0.2s ease;
}

tr.mobile-open .mobileAccordionToggle::after{
transform:rotate(180deg);
}
	
/* תיקון ספציפי לתפריט הפנימי של עמוד ההגדרות במובייל */
.outer > .statusSelect {
    display: block !important;
    /** margin-bottom: 20px !important; **/
}

/**************************************************************
.outer > .statusSelect ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 10px 5px !important;
    gap: 10px !important;
    background-color: #303842 !important;
}
 **************************************************************/

.outer > .statusSelect li {
    flex: 0 0 auto !important;
}

/**************************************************************
.outer > .statusSelect a.sections {
    padding: 10px 15px !important;
    background-color: #444 !important;
    color: #fff !important;
    border-radius: 5px !important;
    border: 1px solid #5f87ae !important;
}

.outer > .statusSelect a.sections.selected {
    background-color: #5f87ae !important;
}
 **************************************************************/
	
.leadsMenu{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    text-align:center !important;
}

/* שלושת האלמנטים באותה שורה */
.leadsTitle,
.smallFont,
.addNewSpan{
    display:inline-flex !important;
    align-items:center !important;
    vertical-align:middle !important;
    margin:0 !important;
    order:2 !important;
    white-space:nowrap !important;
}

/* הכותרת + המספר + הכפתור נשארים צמודים */
.leadsTitle{
    font-size:16px !important;
    line-height:1.2 !important;
}

.smallFont{
    font-size:13px !important;
    line-height:1.2 !important;
}

.addNewSpan{
    margin-right:50px !important;
    margin-left:0 !important;
}

.addNewSpan .addEditContact{
    white-space:nowrap !important;
    margin:0 !important;
}

	
/* 1. ארגון השורה - הכל בשורה אחת */
    .searchLeads {
        order:1 !important;
		width:100% !important;
		display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 2px !important;
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 0 0px !important;
        box-sizing: border-box !important;
    }
	
	/* הפג'ינציה יורדת שורה נפרדת */
	.paginate{
		order:3 !important;
		width:100% !important;
		display:block !important;
		text-align:center !important;
		margin:10px 0 10px 0 !important;
	}

    /* 2. הסתרת תוויות טקסט וחיפוש מתקדם */
    .searchLeads { color: transparent !important; font-size: 0 !important; } /* מעלים טקסט חופשי */
    .searchLeads .advSearch, 
    .searchLeads label, 
    .searchLeads span:not(.searchLeads) { 
        display: none !important; 
    }

    /* 3 + 4. רוחב קבוע לשדות (חיפוש ודרופ-דאון עמודה) */
    .searchText, .leadSources, .leadTypes, .Owners {
        flex: 2 !important; /* תופס יותר מקום */
        min-width: 120px !important;
        max-width: 170px !important;
        height: 35px !important;
        margin: 0 !important;
        font-size: 14px !important;
    }

    .searchColumn {
        flex: 1 !important; /* תופס פחות מקום */
        min-width: 90px !important;
        max-width: 110px !important;
        height: 40px !important;
        margin: 0 !important;
        font-size: 14px !important;
    }

    /* 5. כפתור חיפוש כזכוכית מגדלת */
    .goSearch {
        flex: 0 0 45px !important;
        width: 45px !important;
        height: 40px !important;
        background: #64b252 url('img/search-icon.png') no-repeat center !important; /* וודא שיש לך אייקון כזה או השתמש בטקסט 🔍 */
        background-size: 20px !important;
        font-size: 0 !important; /* מעלים את המילה "חפש" */
        border-radius: 5px !important;
        padding: 0 !important;
    }
    
    /* אם אין לך קובץ תמונה של זכוכית מגדלת, השתמש באימוג'י במקום */
    .goSearch::before {
        content: "🔍" !important;
        font-size: 18px !important;
        color: white !important;
    }
	
	.pagin * {
		padding: 10px;
	}
}

/***************** End Statistics Page ***********************/
