/* ===== דוח שנתי מפורט / רב שנתי מפורט ===== */
.cr-form { direction: rtl; font-family: Calibri, Helvetica, sans-serif; }
.cr-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.cr-controls label { font-weight: bold; color: #004166; }
.cr-controls select { padding: 6px 10px; border-radius: 8px; border: 1px solid #b9c7d1; font-size: 15px; font-family: inherit; }
.cr-error { color: #c0392b; font-weight: bold; }
.cr-loading { color: #006ba8; font-weight: bold; }

.cr-btn {
  padding: 8px 18px; border-radius: 10px; border: 1px solid #006ba8; background: #fff; color: #006ba8;
  font-size: 15px; font-weight: bold; cursor: pointer; font-family: Calibri, Helvetica, sans-serif; transition: .15s;
}
.cr-btn:hover { background: #006ba8; color: #fff; }
.cr-btn-primary { background: #006ba8; color: #fff; }
.cr-btn-primary:hover { background: #005683; }

.cr-toolbar { display: flex; justify-content: center; gap: 10px; direction: rtl; margin: 14px 0 8px; flex-wrap: wrap; }
.cr-mailbox {
  display: flex; gap: 8px; align-items: center; justify-content: center; direction: rtl; flex-wrap: wrap;
  background: #eef5fa; border: 1px solid #cfe0eb; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px;
}
.cr-mailbox input { padding: 7px 10px; border-radius: 8px; border: 1px solid #b9c7d1; font-size: 14px; min-width: 220px; }
.cr-mail-status { font-weight: bold; }

/* ---------- the printable "sheet" ---------- */
.cr-sheet-wrap { background: #e9eef2; padding: 24px 12px; border-radius: 14px; overflow-x: auto; }
.cr-sheet {
  width: 794px; max-width: 100%; margin: 0 auto; background: #fff; direction: rtl;
  font-family: Calibri, Helvetica, sans-serif; color: #1f2933; box-shadow: 0 8px 28px rgba(0,0,0,.18);
  border-radius: 6px; overflow: hidden;
}
.cr-head {
  display: flex; justify-content: space-between; align-items: center; padding: 26px 32px;
  background: linear-gradient(120deg, #004166 0%, #006ba8 100%); color: #fff;
}
.cr-title { font-size: 30px; font-weight: bold; }
.cr-sub { font-size: 17px; opacity: .9; margin-top: 4px; }
.cr-logo { height: 58px; width: auto; }

.cr-body { padding: 24px 32px 8px; }
.cr-meter {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; padding: 14px 18px;
  border: 1px solid #d6e6ee; border-radius: 12px; background: #f6fafc; margin-bottom: 20px;
}
.cr-meter div { display: flex; gap: 8px; font-size: 14px; border-bottom: 1px dashed #d6e6ee; padding: 3px 0; }
.cr-meter span { color: #5b7385; min-width: 80px; }
.cr-meter b { color: #004166; }

.cr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.cr-kpi { border-radius: 14px; padding: 14px 16px; background: #f2f2f2; border-top: 5px solid #8a9ba8; }
.cr-kpi span { display: block; font-size: 13px; color: #5b7385; margin-bottom: 6px; }
.cr-kpi b { font-size: 21px; color: #1f2933; }
.cr-kpi small { font-size: 13px; font-weight: normal; }
.cr-kpi-taoz { background: #eaf4fb; border-top-color: #006ba8; }
.cr-kpi-home { background: #fdf3e6; border-top-color: #e08a1e; }
.cr-kpi.cr-pos { background: #eaf6ec; border-top-color: #2e9e4f; }
.cr-kpi.cr-neg { background: #fbecec; border-top-color: #c0392b; }

.cr-h3 { color: #006ba8; text-align: right; font-size: 18px; margin: 18px 0 8px; border-right: 4px solid #006ba8; padding-right: 10px; }

/* chart */
.cr-chart { border: 1px solid #d6e6ee; border-radius: 12px; padding: 12px 14px 8px; margin-bottom: 18px; }
.cr-chart-legend { font-size: 13px; color: #44596a; margin-bottom: 8px; }
.cr-dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: middle; }
.cr-dot-taoz, .cr-bar-taoz { background: #006ba8; }
.cr-dot-home, .cr-bar-home { background: #e08a1e; }
.cr-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.cr-bargroup { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; min-width: 0; }
.cr-bars { display: flex; align-items: flex-end; gap: 2px; height: 145px; width: 100%; justify-content: center; }
.cr-bar { width: 38%; max-width: 22px; border-radius: 4px 4px 0 0; min-height: 2px; }
.cr-barlabel { font-size: 11px; color: #44596a; margin-top: 5px; text-align: center; line-height: 1.1; height: 24px; overflow: hidden; }

/* tables */
.cr-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; direction: rtl; }
.cr-table th { background: #006ba8; color: #fff; padding: 9px 8px; text-align: center; font-weight: bold; }
.cr-table td { padding: 8px; text-align: center; border-bottom: 1px solid #e3edf3; }
.cr-table tbody tr:nth-child(even) { background: #f3f8fb; }
.cr-table tfoot td { background: #004166; color: #fff; font-weight: bold; padding: 10px 8px; }
.cr-table tfoot td.cr-pos { color: #9df2b2; }
.cr-table tfoot td.cr-neg { color: #ffb3ab; }
.cr-table .cr-yearrow td { background: #d6e6ee !important; color: #004166; font-weight: bold; text-align: right; }
.cr-table .cr-subtotal td { background: #eaf4fb !important; font-weight: bold; border-top: 2px solid #006ba8; }
.cr-pos { color: #1e7d3a; font-weight: bold; }
.cr-neg { color: #c0392b; font-weight: bold; }

.cr-note { font-size: 12px; color: #6b7c89; margin: 6px 0 14px; }
.cr-foot { display: flex; justify-content: space-between; padding: 12px 32px; background: #f1f6f9; color: #5b7385; font-size: 12px; border-top: 3px solid #006ba8; }

/* חיפוש מונים (כמו בדוח חישוב דליפה) */
.cr-searchbar { display: flex; align-items: center; gap: 5px; margin: 8px 0; direction: rtl; }
.cr-search-input { font-size: 20px; text-align: center; border-radius: 10px; border: 1px solid #b9c7d1; padding: 4px 10px; font-family: Calibri, Helvetica, sans-serif; }

/* פס לוגואים בתחתית הדוח */
.cr-logos { padding: 14px 32px 10px; background: #fff; border-top: 1px solid #e3edf3; text-align: center; }
.cr-logos img { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto; }

/* פילוח שפל / פסגה */
.cr-kpis-2 { grid-template-columns: repeat(2, 1fr); }
.cr-kpi-low { background: #eaf6ec; border-top-color: #2e9e4f; }
.cr-kpi-high { background: #fbecec; border-top-color: #c0392b; }
.cr-splitbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin: 4px 0 6px; direction: rtl; }
.cr-splitbar-low, .cr-splitbar-high { color: #fff; font-size: 13px; font-weight: bold; text-align: center; line-height: 26px; }
.cr-splitbar-low { background: #2e9e4f; }
.cr-splitbar-high { background: #c0392b; }
.cr-dot-low { background: #2e9e4f; }
.cr-dot-high { background: #c0392b; }
