﻿
<style>
.main-content {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.job-card,
.job-description,
.job-requirements {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* ===== Ultra-Compact Modal Form ===== */
.modal-form {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 8px;
}
.modal-form .form-row {
  display: contents;
}
.modal-form .form-lbl {
  font-size: .78em;
  color: #555;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
}
.modal-form .form-inp {
  padding: 4px 7px !important;
  font-size: 16px !important;
  border: 1px solid #ccd6e0;
  border-radius: 5px;
  background: #fff;
  max-width: 180px;
height: 28px;
  box-sizing: border-box;
  margin: 0 !important;
}
.modal-form .form-inp:focus {
  outline: none;
  border-color: #007eb2;
}
.form-inp.input-error { border-color: #e53935 !important; }
.modal-form .modal-submit-btn {
  grid-column: 1 / -1;
  margin-top: 6px;
}

/* ===== Custom File Picker ===== */
.cv-file-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  direction: rtl;
  max-width: 200px;
}
.cv-choose-btn {
  padding: 3px 10px;
  font-size: .78em;
  font-family: inherit;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-left: 1px solid #ccc;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.6;
}
.cv-choose-btn:hover { background: #e2e2e2; }
.cv-file-name {
  padding: 3px 7px;
  font-size: .75em;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ===== Screen-reader only utility ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Prevent iOS auto-zoom on input focus ===== */
/* iOS Safari zooms in when font-size < 16px — this locks it at 16px */
.search-input {
  font-size: 16px !important;
}

/* ===== Job Share Button ===== */
.job-top-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.job-share-wrap {
  position: relative;
}

.job-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: .75em;
  font-family: inherit;
  font-weight: 600;
  color: #007eb2;
  background: #f0f8fd;
  border: 1px solid #b3d9ed;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
  line-height: 1.4;
}
.job-share-btn:hover {
  background: #daeef9;
  border-color: #007eb2;
}

.job-share-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.13);
  min-width: 148px;
  z-index: 200;
  overflow: hidden;
  padding: 4px 0;
}
.job-share-dropdown.open {
  display: block;
}

.job-share-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  font-size: .82em;
  color: #1a2a3a;
  text-decoration: none;
  transition: background .12s;
  direction: rtl;
}
.job-share-item:hover {
  background: #f0f7fc;
}
.job-share-item svg {
  flex-shrink: 0;
  color: #007eb2;
}



/* ===== Modal: חצי תיאור / חצי טופס ===== */
.modal-box {
  display: flex !important;
  flex-direction: column !important;
  height: 88dvh !important;
  max-height: 88dvh !important;
}

/* תיאור המשרה – חצי עליון עם גלילה */
#modal-job-details {
  flex: 0 0 auto;
  max-height: calc(44dvh - 60px); /* 50% פחות header ו-sep */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  font-size: .82em;
  line-height: 1.6;
}
#modal-job-details::-webkit-scrollbar { width: 4px; }
#modal-job-details::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.modal-job-desc,
.modal-job-req {
  margin-bottom: 4px;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* הטופס – חצי תחתון, גובה קבוע בלי גלילה כפולה */
#apply-iframe {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  width: 100%;
  border: none;
  display: block;
}

</style>