/* אזור הניהול החי — תוספות לעיצוב של לוח הניהול (admin.css) */
.layout { min-height: 100vh; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* מסך כניסה */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(60% 50% at 80% 0%, rgba(107, 63, 214, .35), transparent 70%), linear-gradient(180deg, #1c1030, #120a20); }
.gate-box { width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 30px 26px 24px; display: grid; gap: 12px; justify-items: center; text-align: center; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.gate-box img { border-radius: 16px; }
.gate-box h1 { font-size: 1.7rem; }
.gate-text { color: var(--muted); }
.gate-form { width: 100%; display: grid; gap: 8px; text-align: start; }
.gate-form label { font-weight: 700; }
.gate-form input[type="email"] { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 1.05rem; text-align: start; }
.gate-form input:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(107, 63, 214, .16); }
.gate-form .btn { justify-content: center; }
.gate-err { color: var(--danger); font-weight: 700; font-size: .9rem; }
.gate-err:empty { display: none; }
.gate-back { color: var(--purple); font-weight: 700; margin-top: 4px; }

/* קישורים בצד */
.side-links { display: grid; gap: 2px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: #b9aecd; text-decoration: none; font-size: .92rem; font-weight: 600; }
.side-links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.side-user .icon-link { border: 0; background: none; cursor: pointer; }

.load-error { background: #fdecef; color: var(--danger); font-weight: 700; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.funnel-card { cursor: pointer; }
.funnel-card[data-status-card="contacted"] .f-num { color: var(--s-contacted); }
.funnel-card[data-status-card="audition"] .f-num { color: var(--s-audition); }
.tool-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.tool-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--purple); }
.tag-test { font-size: .72rem; font-weight: 800; color: #7a4b00; background: #fff1d6; padding: 1px 8px; border-radius: 999px; }
.tag-en { font-size: .72rem; font-weight: 800; color: var(--purple); background: var(--purple-50); padding: 1px 8px; border-radius: 999px; }
.row-del { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.row-del:hover { color: var(--danger); border-color: #f0c4cd; background: #fdf3f5; }
.inq-table td.cell-act { width: 52px; }
.note-in.is-saving { border-color: var(--s-contacted); }
.note-in.is-saved { border-color: var(--s-accepted); }
.mail-flag { font-size: .78rem; color: var(--danger); font-weight: 700; }
.role { font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--purple-50); color: var(--purple); white-space: nowrap; }
.role.is-manager { background: #e3fbf7; color: #0f5f55; }

/* מאחורי הקלעים */
.en-fields summary { cursor: pointer; font-weight: 700; color: var(--purple); }
.en-fields .grid { margin-top: 10px; }
.excl-item { padding: 0; overflow: hidden; }
.excl-item .thumb { aspect-ratio: 16 / 9; background: #1c1030 center / cover no-repeat; display: grid; place-items: center; color: #fff; }
.excl-item .thumb .ico { width: 34px; height: 34px; }
.excl-item .body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.excl-item .text { color: var(--muted); font-size: .92rem; white-space: pre-line; }
.excl-item.is-draft { border-style: dashed; }
.excl-item.is-draft .thumb { filter: grayscale(.8); opacity: .75; }
.pill-draft { background: #fff1d6 !important; color: #7a4b00 !important; }
.card-actions { flex-wrap: wrap; }
.card-actions .btn { min-height: 38px; padding: 6px 12px; font-size: .9rem; }
.btn-danger-light { background: #fdf3f5; color: var(--danger); }
.btn-danger-light:hover { background: #fae3e8; }
@media (max-width: 980px) { .side-links { display: flex; flex: none; } .side-links a { white-space: nowrap; } }

/* שליחת דיוור */
.mail-to { font-weight: 700; color: var(--purple); background: var(--purple-50); border-radius: 10px; padding: 8px 12px; }
.mail-to:empty { display: none; }
.file-pick label { font-weight: 600; }
.file-pick input[type="file"] { min-height: 0; padding: 8px; border-style: dashed; }
.file-line { font-size: .9rem; color: var(--muted); }
.preview-subject { font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.preview-subject b { color: var(--ink); }
.mail-frame { display: block; width: 100%; min-height: 420px; border: 1px solid var(--line); border-radius: 18px; background: #f3f0f8; box-shadow: 0 20px 50px -30px rgba(26, 18, 40, .45); }
.progress { display: grid; gap: 6px; }
.progress .bar { height: 10px; border-radius: 999px; background: var(--purple-50); overflow: hidden; }
.progress .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--purple-500)); transition: width .4s; }
.progress p { font-weight: 600; color: var(--ink); }
.hist-title { font-size: 1.25rem; margin: 30px 0 12px; }
[data-mail-send]:disabled { opacity: .55; cursor: not-allowed; }
.video-info { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #e3fbf7; color: #0f5f55; font-weight: 600; }
.video-info img { border-radius: 8px; object-fit: cover; flex: none; }
.video-info span { display: grid; gap: 2px; }
.video-info small { font-weight: 500; color: #2b6b62; }
.video-info.is-error { background: #fdecef; color: var(--danger); }
.preview-note { font-size: .85rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.gate-google { width: 100%; display: grid; gap: 12px; justify-items: center; }
.gate-or { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* חזרה לאתר — בולט בראש הקישורים */
.side-links a.back-site { background: rgba(166, 252, 239, .14); color: #fff; font-weight: 700; }
.side-links a.back-site:hover { background: rgba(166, 252, 239, .24); }
/* בעברית חץ ימינה = חזרה */

/* חלונות: הוספת ילד, ייבוא מאקסל, הוספת כתובות */
.mdl { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: visible; }
.mdl-wide { width: min(940px, calc(100vw - 24px)); }
.mdl::backdrop { background: rgba(20, 12, 34, .6); }
.mdl-box { background: var(--card); border-radius: 20px; padding: 20px; display: grid; gap: 14px; max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.mdl-step { display: grid; gap: 14px; }
.mdl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mdl-head h2 { font-size: 1.25rem; }
.mdl-x { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }
.mdl-x:hover { color: var(--ink); background: var(--purple-50); }
.mdl-sub { color: var(--muted); font-size: .92rem; }
.mdl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mdl-h3 { font-size: 1rem; }
.mdl-h3 small { font-weight: 600; color: var(--muted); }
.file-drop input[type="file"] { min-height: 0; padding: 16px; border-style: dashed; border-width: 2px; background: var(--purple-50); cursor: pointer; }
.map-wrap, .prev-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: auto; max-height: 300px; }
.map-table, .prev-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.map-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.map-table tr:last-child td { border-bottom: 0; }
.map-table .col-name { max-width: 0; width: 100%; }
.map-table .col-name b, .map-table .col-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-table .col-name small { color: var(--muted); font-size: .82rem; font-weight: 500; }
.map-table .col-pick { width: 1%; }
.map-table select { min-height: 38px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 210px; max-width: 46vw; }
.map-table tr.is-off .col-name { opacity: .5; }
.mdl-h3, .mdl-sub, .mdl-head h2 { margin: 0; }
.prev-table th, .prev-table td { padding: 7px 10px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prev-table th { background: var(--purple-50); color: var(--purple); font-size: .8rem; position: sticky; top: 0; }
.prev-table tr.is-skip td { color: var(--danger); text-decoration: line-through; opacity: .7; }
.prev-table tr.is-dup td { color: var(--muted); }
.prev-table .why { text-decoration: none; display: inline-block; font-size: .76rem; font-weight: 700; }
.topics-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.topics-pick legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.subadd-sum { font-weight: 700; color: var(--purple); }
.subadd-sum:empty, .file-line:empty { display: none; }
.tag-src { font-size: .72rem; font-weight: 800; color: #0f5f55; background: #e3fbf7; padding: 1px 8px; border-radius: 999px; }
.row-edit { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.row-edit:hover { color: var(--purple); border-color: #d6c8f3; background: var(--purple-50); }
.inq-table td.cell-act { width: 92px; }
.cell-act .acts { display: flex; gap: 6px; }
.form-msg .link-btn { margin-inline-start: 6px; }
@media (max-width: 640px) { .mdl-box { padding: 16px; border-radius: 16px; } }
