{
    font-family: 'Heebo', Arial, sans-serif;
    background: #f7fafd;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0 20px 0;
}

header h1 {
    color: #395ba6;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 38px;
    font-weight: 900;
    letter-spacing: 1px;
}

.add-lead-section, .stats-section, .filters-section, .leads-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 24px 0 #bfc8e633;
    margin-bottom: 24px;
    padding: 32px 30px 24px 30px;
}

.add-lead-section {
    margin-bottom: 34px;
}

.add-lead-section h2, .filters-section h2, .leads-section h2 {
    color: #22305a;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: right;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 2;
}

label {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #395ba6;
    font-weight: 600;
    letter-spacing: 0.4px;
}

input, select, textarea {
    border-radius: 8px;
    border: 1.2px solid #ced4da;
    padding: 13px 12px;
    font-size: 1.09rem;
    background: #f8fafd;
    font-family: inherit;
    transition: border 0.18s;
}

input:focus, select:focus, textarea:focus {
    border-color: #4a6da7;
    outline: none;
    background: #f0f7ff;
}

textarea {
    resize: vertical;
    min-height: 44px;
    max-height: 150px;
}

.btn-primary {
    background: #395ba6;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 1.1rem;
    padding: 14px 0;
    margin-top: 16px;
    width: 180px;
    align-self: flex-end;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px #e5e8ef99;
    transition: background 0.17s;
}

.btn-primary:hover {
    background: #22305a;
}

/* סטטיסטיקות */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin: 12px 0 8px 0;
    justify-items: center;
}

.stat-card {
    flex: 1;
    background: #f3f7ff;
    border-radius: 14px;
    padding: 26px 0 18px 0;
    text-align: center;
    box-shadow: 0 2px 8px #f0f4fa;
    min-width: 180px;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 900;
    color: #22305a;
}

.stat-label {
    display: block;
    color: #395ba6;
    font-size: 1.12em;
    margin-top: 6px;
    font-weight: 600;
}

/* חיפוש וסינון */
.filters-section {
    padding-bottom: 15px;
}

.filters {
    display: flex;
    gap: 12px;
    margin-top: 7px;
    align-items: center;
}

.filters input, .filters select {
    flex: 1;
    min-width: 170px;
}

@media (max-width: 800px) {
    .form-row, .stats-grid, .filters { flex-direction: column; gap: 0; }
    .stat-card { min-width: 90px; }
    .add-lead-section, .stats-section, .filters-section, .leads-section { padding: 12px 4px 10px 4px; }
}

/* טבלת עובדים */
.table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 14px #bfc8e611;
    overflow-x: auto;
    margin-top: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
    background: transparent;
}

th, td {
    padding: 13px 13px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

th {
    background: #f4f7fa;
    color: #22305a;
    font-weight: 800;
    font-size: 1.08em;
}

tbody tr:hover {
    background: #f7fafd;
}

/* סידור כפתורים במובייל */
@media (max-width: 600px) {
    .btn-primary { width: 100%; align-self: stretch; }
}
/* === יישור כותרות מול עמודת המספור (#) ================= */
#leadsTable thead tr{
    position: relative;    /* מאפשר לפסאודו-אלמנט להצטרף לשורה */
    direction: rtl;        /* העמודה מתווספת בקצה ימין */
}

#leadsTable thead tr::before{
    content: "";
    display: table-cell;   /* נספר כמו <th> רגיל */
    width: 45px;           /* רוחב עמודת המספור (#) */
}

/* במסכים צרים – מצמצמים קצת */
@media (max-width:600px){
    #leadsTable thead tr::before{ width: 38px; }
}


/* במסכים צרים אפשר לצמצם מעט */
@media (max-width:600px){
    #customersTable thead tr::before{ width: 38px; }
}
/* ======================================================== */
th, td {
    padding: 13px 13px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    font-size: 20px;
}
body{
    font-family: 'Heebo', Arial, sans-serif;   /* ← שנה כאן לפונט החדש */
    background:#f7fafd;
    margin:0;
    padding:0;
    direction:rtl;
}