/* דשבורד קמפיינים - עיצוב מותג Israel Web */
/* פלטה: פחם #292B2C · ליים #CEF500 · Heebo */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f4f5f4;
    --card: #ffffff;
    --text: #292b2c;
    --muted: #6b7176;
    --border: #e4e6e4;
    --brand-dark: #292b2c;
    --brand-dark-2: #364048;
    --accent: #cef500;
    --accent-dark: #a8c900;
    --danger: #dc2626;
    --warn: #f59e0b;
    --ok: #16a34a;
}

body {
    font-family: "Heebo", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--brand-dark); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

/* סרגל עליון */
.topbar {
    background: var(--brand-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 3px solid var(--accent);
}
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    height: 62px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; display: block; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a {
    color: #d7dad7;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
}
.topbar nav a:hover { background: var(--brand-dark-2); color: #fff; text-decoration: none; }
.topbar nav a.active { background: var(--accent); color: #000; font-weight: 700; }
.badge {
    background: var(--accent);
    color: #000;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 800;
}
.topbar nav a.active .badge { background: #000; color: var(--accent); }
.userbox { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.userbox .muted { color: #9aa09a; }

.container { max-width: 1200px; margin: 24px auto; padding: 0 20px; }

h1 { font-size: 25px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; position: relative; padding-right: 12px; }
h2::before {
    content: '';
    position: absolute;
    right: 0; top: 4px; bottom: 4px;
    width: 4px;
    background: var(--accent);
}
h3 { font-size: 15px; font-weight: 700; margin: 18px 0 10px; }

/* כרטיסים */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.cards .card { margin-bottom: 0; border-top: 3px solid var(--brand-dark); }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-value { font-size: 27px; font-weight: 800; color: var(--brand-dark); }
.stat-alert { border-top-color: var(--danger) !important; }
.stat-alert .stat-value a { color: var(--danger); }

/* טבלאות */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
    text-align: right;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    border-bottom: 2px solid var(--brand-dark);
    padding: 8px 10px;
}
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: #fafcf0; }

/* מחוון תקציב */
.budget-bar {
    background: var(--border);
    border-radius: 999px;
    height: 8px;
    width: 140px;
    overflow: hidden;
}
.budget-fill { background: var(--accent-dark); height: 100%; border-radius: 999px; }
.budget-fill.warn { background: var(--warn); }
.budget-fill.over { background: var(--danger); }

/* תגיות */
.tag {
    display: inline-block;
    background: #f1f3f1;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 9px;
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
}
.tag.meta { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.tag.google { background: #fefce8; border-color: #fde68a; color: #a16207; }
.tag.sev-critical { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.tag.sev-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.tag.sev-info { background: #f7fce0; border-color: #dff09a; color: #5c6e00; }

/* התראות */
.alerts-list .alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-right: 4px solid var(--warn);
}
.alert-item.sev-critical { border-right-color: var(--danger); }
.alert-item.sev-info { border-right-color: var(--accent); }
.alert-item.read { opacity: 0.6; }
.alert-tags { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.page-head h1 { margin-bottom: 0; }

/* טפסים */
input, select, button, textarea { font-family: inherit; font-size: 14px; }
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], select {
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 7px 10px;
    background: #fff;
    width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); border-color: var(--brand-dark); }
label { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
label input, label select { margin-top: 3px; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; min-width: 140px; }
.stack-form label { max-width: 640px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row label { flex: 1; min-width: 160px; }
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.filter-bar label { margin-bottom: 0; }
.filter-bar input { width: auto; }

.btn {
    display: inline-block;
    border: 1px solid var(--brand-dark);
    background: #fff;
    color: var(--brand-dark);
    border-radius: 0;
    padding: 7px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, color .15s;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.btn.primary:hover { background: #000; border-color: #000; color: var(--accent); }
.btn.danger { color: var(--danger); border-color: #fecaca; }
.btn.danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { padding: 4px 12px; font-size: 13px; }
.btn.full { width: 100%; }

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    border-radius: 3px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}
.success-box {
    background: #f7fce0;
    border: 1px solid var(--accent);
    color: #3d4a00;
    border-radius: 3px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }
code { background: #f1f3f1; padding: 2px 6px; border-radius: 3px; font-size: 13px; }

/* פילטר תאריכים */
.date-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 18px;
}
.preset-group { display: flex; gap: 2px; flex-wrap: wrap; }
.preset {
    padding: 5px 13px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
    background: #fff;
}
.preset:hover { background: #f4f5f4; text-decoration: none; color: var(--text); }
.preset.active { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--accent); }
.custom-range { display: flex; align-items: center; gap: 6px; }
.custom-range input[type="date"] { width: auto; padding: 4px 8px; font-size: 13px; }
.range-label { margin-right: auto; }

/* תגי שינוי מול תקופה קודמת */
.delta { font-size: 12.5px; font-weight: 700; }
.delta.good { color: var(--ok); }
.delta.bad { color: var(--danger); }
.delta.neutral { color: var(--muted); }

/* כלי טבלה: חיפוש, פילטרים, ייצוא */
.table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.table-head h2 { margin-bottom: 0; }
.table-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-tools input[type="text"] { padding: 5px 10px; font-size: 13px; }
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}
.checkbox-label input { width: auto; margin: 0; }

/* מיון טבלאות */
th.sort-header { cursor: pointer; user-select: none; }
th.sort-header:hover { color: var(--text); }
th.sort-asc::after { content: ' ▲'; color: var(--accent-dark); }
th.sort-desc::after { content: ' ▼'; color: var(--accent-dark); }

/* חיווי סנכרון */
.sync-indicator { color: #9aa09a; font-size: 12.5px; }

/* מוקאפ מודעה בסגנון פוסט פייסבוק */
.fb-mockup {
    background: #fff;
    border: 1px solid #dadde1;
    border-radius: 8px;
    max-width: 380px;
    font-family: "Heebo", "Segoe UI", Arial, sans-serif;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: right;
}
.fb-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.fb-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--brand-dark);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
    flex-shrink: 0;
}
.fb-page { font-weight: 700; font-size: 14px; color: #050505; }
.fb-sponsored { font-size: 12px; color: #65676b; }
.fb-body { padding: 0 12px 10px; font-size: 14px; color: #050505; white-space: pre-line; max-height: 130px; overflow-y: auto; }
.fb-image { width: 100%; display: block; background: #f0f2f5; min-height: 120px; object-fit: cover; }
.fb-image-placeholder {
    width: 100%; height: 180px;
    background: repeating-linear-gradient(45deg, #f0f2f5, #f0f2f5 12px, #e4e6eb 12px, #e4e6eb 24px);
    display: flex; align-items: center; justify-content: center;
    color: #65676b; font-size: 13px;
}
.fb-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #f0f2f5; padding: 10px 12px;
}
.fb-title { font-size: 13px; font-weight: 600; color: #050505; }
.fb-cta {
    background: #e4e6eb; border: none; border-radius: 6px;
    padding: 7px 14px; font-weight: 700; font-size: 13px; color: #050505;
    white-space: nowrap; cursor: default;
}
.fb-actions {
    display: flex; justify-content: space-around;
    border-top: 1px solid #dadde1;
    padding: 6px 0; color: #65676b; font-size: 13px;
}

/* טבלת מודעות: תמונה ממוזערת */
.ad-thumb {
    width: 40px; height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    vertical-align: middle;
    cursor: pointer;
}
.thumb-wrap { position: relative; display: inline-block; cursor: pointer; }
.play-badge {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.35);
    border-radius: 6px;
    pointer-events: none;
}
video.fb-image { max-height: 400px; background: #000; }
.fb-mockup.preview-mode { max-width: 420px; background: #17181a; border: none; }
.ad-preview-frame {
    width: 420px;
    max-width: 92vw;
    height: min(640px, 78vh);
    border: none;
    background: #fff;
    display: block;
    position: relative;
    z-index: 1;
}
.preview-spinner {
    color: #fff;
    padding: 40px 30px;
    text-align: center;
    font-size: 14px;
    min-width: 280px;
}
.preview-spinner a { color: var(--accent); }
.preview-loading {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
    z-index: 0;
}
.live-preview-link {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-dark);
    margin-right: 6px;
    white-space: nowrap;
}
.preview-fullscreen {
    position: absolute;
    bottom: -34px;
    right: 0;
    color: #9aa09a;
    font-size: 18px;
    text-decoration: none;
}
.preview-fullscreen:hover { color: var(--accent); text-decoration: none; }
.ad-name-btn { cursor: pointer; color: var(--brand-dark); font-weight: 500; background: none; border: none; text-align: right; padding: 0; font-size: 14px; }
.ad-name-btn:hover { text-decoration: underline; }

/* תג ערוץ הנתונים ליד כותרות סקשנים */
.ptag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 3px;
    color: #fff;
    vertical-align: middle;
    margin-right: 8px;
    letter-spacing: 0.2px;
}
.ptag.meta { background: #3B6BE8; }
.ptag.google { background: #7A8C00; }
.ptag.merged { background: var(--brand-dark); color: var(--accent); }

/* מוקאפ מודעת חיפוש של גוגל (משותף לעמוד הקמפיין ולדוח) */
.google-ad {
    background: #fff; border: 1px solid #dadce0; border-radius: 8px;
    padding: 14px 16px; text-align: right;
}
.ga-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ga-badge { font-weight: 700; font-size: 12px; color: #202124; }
.ga-url { font-size: 12.5px; color: #202124; direction: ltr; }
.ga-headline { color: #1a0dab; font-size: 17px; line-height: 1.35; margin-bottom: 5px; }
.ga-desc { color: #4d5156; font-size: 13.5px; line-height: 1.5; }

/* כל הכותרות והתיאורים של מודעה רספונסיבית - מתחת למוקאפ */
.fb-mockup.google-mode { background: transparent; border: none; box-shadow: none; max-width: 460px; }
.gad-full { margin-top: 14px; }
.gad-full h4 {
    font-size: 12.5px; font-weight: 700; color: var(--muted);
    margin: 12px 0 6px; text-transform: none;
}
.gad-list { margin: 0; padding-right: 20px; }
.gad-list li { font-size: 13px; line-height: 1.6; color: var(--text); }
.gad-list li::marker { color: var(--muted); font-size: 11px; }
.gad-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* שם מודעה ארוך (כותרות גוגל משורשרות) לא ישבור את הטבלה */
.ad-name-btn {
    max-width: 320px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; display: inline-block; vertical-align: bottom;
}

/* נוסח מודעת גוגל */
.google-headlines {
    padding: 10px 12px 4px;
    color: #1a0dab;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* מודאל מוקאפ */
.mockup-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center; justify-content: center;
    z-index: 100;
    padding: 20px;
}
.mockup-overlay.open { display: flex; }
.mockup-box { position: relative; }
.mockup-close {
    position: absolute; top: -14px; left: -14px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 50%; width: 32px; height: 32px;
    cursor: pointer; font-size: 16px; font-weight: 700;
    z-index: 2;
}

/* גריד מוקאפים בדוח */
.mockup-grid { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.mockup-grid .fb-mockup { flex: 1; min-width: 260px; max-width: 320px; }
.mockup-label { text-align: center; font-size: 13px; font-weight: 700; margin-top: 6px; }

/* מסך התחברות */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(150deg, #292b2c 0%, #17181a 100%);
}
.login-card {
    background: #fff;
    border-radius: 6px;
    border-top: 4px solid var(--accent);
    padding: 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.login-logo {
    display: block;
    margin: 0 auto 18px;
    height: 44px;
    /* הלוגו לבן - רקע כהה קטן סביבו */
    background: var(--brand-dark);
    padding: 8px 14px;
    box-sizing: content-box;
    border-radius: 4px;
}
.login-card h1 { font-size: 19px; margin-bottom: 16px; justify-content: center; }
.login-card form { display: flex; flex-direction: column; gap: 4px; }
.login-card .btn { margin-top: 10px; }

/* לידים מהנציגים: פילוח סטטוסים */
h3.sub {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand-dark-2);
    margin: 18px 0 8px;
}
.lead-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.lb-row { display: grid; grid-template-columns: minmax(90px, 190px) 1fr 110px; gap: 10px; align-items: center; }
.lb-label { font-size: 13.5px; font-weight: 600; }
.lb-track { background: #f1f3f1; border-radius: 3px; height: 20px; overflow: hidden; }
.lb-bar { background: var(--brand-dark-2); height: 100%; border-radius: 0 3px 3px 0; }
.lb-val { font-size: 13px; white-space: nowrap; }

/* טבלה צולבת: סטטוס מול מקור הגעה */
table.matrix td, table.matrix th { text-align: center; }
table.matrix td:first-child, table.matrix th:first-child { text-align: right; font-weight: 600; }
table.matrix td.zero { color: #c3c8c3; }
table.matrix tfoot td { border-top: 2px solid var(--border); color: var(--muted); }
table.matrix td.has-leads { cursor: pointer; }
table.matrix td.has-leads:hover { outline: 2px solid var(--accent-dark); outline-offset: -2px; }
.lead-note { max-width: 240px; }

/* חלון צף: הלידים שמאחורי מספר בטבלה הצולבת */
.lead-pop {
    display: none;
    position: absolute;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 5px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
    padding: 8px 0;
    min-width: 240px;
    max-width: 360px;
    max-height: 320px;
    overflow-y: auto;
    text-align: right;
}
.lead-pop-head {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    padding: 0 12px 7px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.lead-pop-hint { display: block; font-weight: 400; font-size: 11px; margin-top: 2px; }
.lead-pop-item { padding: 5px 12px; cursor: pointer; border-radius: 3px; }
.lead-pop-item:hover { background: #f7fce0; }
.lp-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lp-name { font-weight: 600; }
.lp-phone { color: var(--muted); font-size: 12px; }
.lp-date { color: var(--muted); font-size: 11.5px; margin-right: auto; }
.lp-note { display: none; font-size: 12.5px; color: var(--brand-dark-2); background: #f6f7f6;
           border-radius: 3px; padding: 6px 8px; margin-top: 5px; white-space: pre-wrap; }
.lead-pop-item.open .lp-note { display: block; }

/* קמפיין מאוחד: שורה אחת בטבלה שמכילה כמה קמפיינים */
.group-row { background: #fbfdf3; }
.group-row td:first-child { text-align: center; }
.member-list { margin-top: 2px; }
.member-list summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 12px;
    list-style: none;
}
.member-list summary::before { content: '▸ '; }
.member-list[open] summary::before { content: '▾ '; }
.member-list summary::-webkit-details-marker { display: none; }
.member-list a {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    padding: 2px 14px 0 0;
}
.member-list a:hover { color: var(--text); }

/* רשימת קמפיינים לבחירה (עריכת קמפיין מאוחד) */
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px 18px;
}
.check-grid .checkbox-label { align-items: flex-start; padding: 4px 0; }

@media (max-width: 700px) {
    .topbar-inner { gap: 12px; padding: 0 12px; }
    .userbox span { display: none; }
    .brand img { height: 26px; }
    table { font-size: 13px; }
    td, th { padding: 6px; }
    /* טבלאות רחבות נגללות בתוך הכרטיס במקום לדחוף את העמוד */
    .card table { display: block; overflow-x: auto; white-space: nowrap; }
    .cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

.backfill { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.backfill summary { cursor: pointer; font-size: 13.5px; }
.backfill .inline-form { margin-top: 10px; }

/* מקורות הלידים - הסבר הפער מול עמודת "תוצאות" ב-Ads Manager */
.lead-sources {
    background: #fff;
    border: 1px solid var(--border);
    border-right: 3px solid var(--accent);
    border-radius: 4px;
    padding: 12px 16px;
    margin: -6px 0 20px;
    max-width: 620px;
}
.ls-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ls-title .muted { font-weight: 400; font-size: 12px; }
.lead-sources table { font-size: 13.5px; }
.lead-sources td { padding: 5px 0; border-bottom: 1px solid #f1f3f1; }
.lead-sources tr:last-child td { border-bottom: none; }
.ls-num { text-align: left; font-weight: 700; width: 70px; }
.ls-in { color: var(--ok); font-size: 12.5px; width: 210px; }
.ls-out td { color: var(--muted); }
.ls-total td { border-top: 2px solid var(--border); font-weight: 700; padding-top: 8px; }
.ls-total td:last-child { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.ls-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* מודעות לחיצות בדוח ללקוח */
.clickable-ad { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.clickable-ad:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.14); transform: translateY(-1px); }

/* חלון בחירת חודש לקישור הדוח */
.share-overlay {
    display: none; position: fixed; inset: 0; z-index: 70;
    background: rgba(0,0,0,0.55); align-items: center; justify-content: center; padding: 20px;
}
.share-overlay.open { display: flex; }
.share-box {
    background: #fff; border-radius: 6px; border-top: 3px solid var(--accent);
    padding: 22px; width: 100%; max-width: 520px; position: relative;
}
.share-box h2 { margin-bottom: 4px; }
.share-box label { margin-top: 14px; }
.share-box select { width: 100%; }
/* label מוגדר כבלוק למעלה, וזה דורס את hidden של הדפדפן */
.share-box [hidden] { display: none !important; }
.share-saved { background: #fff8e1; border: 1px solid #f5dc8a; border-radius: 6px; padding: 10px 12px; margin-top: 12px; font-size: 13px; color: #6b4e00; }
.share-mode { display: flex; gap: 18px; margin-top: 12px; }
.share-mode label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; cursor: pointer; }
.share-range { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; margin-top: 8px; }
.share-range label { margin: 0; }
.share-range input[type=date] { display: block; margin-top: 4px; }
.share-range .muted { flex-basis: 100%; }
.share-box #shareUrl {
    width: 100%; margin-top: 12px; direction: ltr; font-size: 12.5px;
    font-family: monospace; background: #f6f7f6;
}
