/**
 * Sample Strategy Memo Iframe Styles
 * Report/memo visual language - distinct from the court-document SOC style.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Heebo', 'Arial', sans-serif;
    font-size: 13pt;
    line-height: 1.75;
    color: #1a1a1a;
    background: #fff;
    direction: rtl;
    max-width: 210mm;
    margin: 0 auto;
    padding: 2rem 2.5rem 3rem;
}

@media print {
    body { padding: 0; max-width: none; }
    .no-print { display: none !important; }
    .page-break { page-break-before: always; }
}

/* ── Toolbar ─────────────────────────────────────────────── */
.toolbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #0a192f;
    color: #fff;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    direction: rtl;
}
.toolbar-title { font-size: 13px; opacity: 0.9; }
.toolbar-badge {
    background: rgba(212,175,85,0.18);
    color: #d4af55;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.toolbar-actions { display: flex; gap: 10px; }
.toolbar-btn {
    background: #d4af55;
    color: #0a192f;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.toolbar-btn.secondary {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 400;
}
.toolbar-flex-row { display: flex; align-items: center; gap: 12px; }
.toolbar-link { text-decoration: none; }

/* ── Watermark ───────────────────────────────────────────── */
.watermark {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 72pt;
    font-weight: 900;
    color: rgba(0,0,0,0.04);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
}

.memo-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 64px;
}

/* ── Document header ─────────────────────────────────────── */
.memo-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #0a192f;
}
.confidential-notice {
    display: inline-block;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 4px 14px;
    font-size: 10pt;
    color: #7a5700;
    margin-bottom: 0.8rem;
}
.memo-title {
    font-size: 20pt;
    font-weight: 800;
    color: #0a192f;
    margin: 0.4rem 0;
}
.case-line {
    font-size: 12pt;
    color: #444;
    margin-top: 0.5rem;
}
.parties-line {
    font-size: 14pt;
    font-weight: 700;
    margin: 0.3rem 0;
}
.parties-line .vs {
    font-weight: 400;
    color: #777;
    padding: 0 0.5rem;
}
.amount-line {
    font-size: 12pt;
    color: #0a192f;
    font-weight: 600;
}

/* ── Sections ────────────────────────────────────────────── */
.memo-section {
    margin-bottom: 2.2rem;
}
.memo-section h2 {
    font-size: 14pt;
    font-weight: 800;
    color: #0a192f;
    background: #f0f4f8;
    padding: 6px 14px;
    border-right: 4px solid #d4af55;
    margin-bottom: 1rem;
}
.memo-section p {
    margin-bottom: 0.7rem;
    text-align: justify;
}

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 1rem 0 1.5rem;
}
.dash-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
}
.dash-card.highlight {
    background: #0a192f;
    border-color: #0a192f;
    color: #fff;
}
.dash-num {
    font-size: 18pt;
    font-weight: 800;
    color: #0a192f;
    line-height: 1.2;
}
.dash-card.highlight .dash-num { color: #d4af55; }
.dash-label {
    font-size: 9pt;
    color: #666;
    margin-top: 4px;
}
.dash-card.highlight .dash-label { color: rgba(255,255,255,0.7); }

/* ── Recommendation box ──────────────────────────────────── */
.rec-box {
    background: #e8f5e9;
    border-right: 4px solid #2e7d32;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin: 0.8rem 0;
    font-size: 12pt;
}
.rec-box.warn {
    background: #fff8e1;
    border-right-color: #f9a825;
}
.rec-box.risk {
    background: #fce4ec;
    border-right-color: #c62828;
}

/* ── Summary list ────────────────────────────────────────── */
.summary-bullets {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
.summary-bullets li {
    padding: 5px 0 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12pt;
}
.summary-bullets li:last-child { border-bottom: none; }

/* ── Key phrasings ───────────────────────────────────────── */
.phrasings-list {
    list-style: none;
    padding: 0;
}
.phrasings-list li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 6px;
    font-size: 12pt;
}
.phrase-context {
    font-size: 10pt;
    color: #888;
    display: block;
    margin-bottom: 2px;
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline-list {
    list-style: none;
    padding: 0;
}
.timeline-list li {
    display: flex;
    gap: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12pt;
    align-items: flex-start;
}
.timeline-list li:last-child { border-bottom: none; }
.tl-date {
    font-weight: 700;
    min-width: 130px;
    color: #0a192f;
}
.tl-highlight {
    background: #0a192f;
    color: #d4af55;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10pt;
}

/* ── Cause table ─────────────────────────────────────────── */
.cause-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11pt;
    margin: 0.8rem 0;
}
.cause-table th {
    background: #0a192f;
    color: #fff;
    padding: 8px 12px;
    text-align: right;
    font-weight: 600;
}
.cause-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}
.cause-table tr:nth-child(even) td { background: #f8fafc; }
.strength-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 10pt;
}
.strength-high { background: #e8f5e9; color: #2e7d32; }
.strength-med  { background: #fff8e1; color: #f57f17; }
.strength-low  { background: #fce4ec; color: #c62828; }
.burden-tag {
    font-size: 9pt;
    background: #e3f2fd;
    color: #1565c0;
    padding: 1px 6px;
    border-radius: 10px;
}

/* ── Defense list ────────────────────────────────────────── */
.defense-list {
    list-style: none;
    padding: 0;
}
.defense-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
}
.defense-title {
    font-weight: 700;
    font-size: 12pt;
    margin-bottom: 4px;
}
.defense-counter {
    font-size: 11pt;
    color: #2e7d32;
    margin-top: 4px;
}
.defense-counter::before {
    content: "מענה: ";
    font-weight: 600;
}

/* ── Evidence gap ────────────────────────────────────────── */
.gap-readiness {
    text-align: center;
    padding: 16px;
    background: #fce4ec;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.gap-readiness .big-score {
    font-size: 32pt;
    font-weight: 900;
    color: #c62828;
}
.gap-readiness .score-label {
    font-size: 11pt;
    color: #c62828;
}
.gap-list {
    list-style: none;
    padding: 0;
}
.gap-list li {
    padding: 7px 0 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12pt;
}
.gap-list li:last-child { border-bottom: none; }
.gap-list .critical::before {
    content: "⚠ ";
    color: #c62828;
}
.gap-list .important::before {
    content: "▸ ";
    color: #f57f17;
}

/* ── Strat rec ───────────────────────────────────────────── */
.strat-rec-box {
    background: #0a192f;
    color: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 1rem;
}
.strat-rec-box h3 {
    color: #d4af55;
    font-size: 13pt;
    margin-bottom: 0.8rem;
}
.strat-rec-box p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.5rem;
    text-align: right;
}
.strat-rec-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.strat-rec-box li {
    color: rgba(255,255,255,0.85);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 12pt;
}
.strat-rec-box li:last-child { border-bottom: none; }
