/* ===== FINAL REPORT ===== */
.report-toolbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #1a1a2e; padding: 10px 24px;
  display: flex; align-items: center; gap: 12px;
  direction: ltr; box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  flex-wrap: wrap; /* اجازه شکستن خط در صورت کمبود فضا */
}

.report-toolbar .btn { 
  padding: 8px 20px; 
  font-size: 13px; 
  white-space: nowrap; /* جلوگیری از دو خطی شدن متن داخل دکمه */
}

.report-toolbar .toolbar-label { 
  color: #888; 
  font-size: 13px; 
  margin-left: auto; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.report-page {
  max-width: 720px; margin: 72px auto 48px auto;
  padding: 50px 60px 60px 60px; background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  font-size: 13.5px; line-height: 1.9; color: #000;
}

.report-page .header-title { text-align: center; font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.report-page .info-box { border: 1.5px solid #000; padding: 10px 16px; margin-bottom: 18px; text-align: center; line-height: 2.1; }
.report-page .info-box .row { display: block; font-weight: 700; font-size: 13.5px; }
.report-page .info-box .row .label { font-weight: 800; }
.report-page .body-text { text-align: justify; font-size: 13.5px; line-height: 2.0; margin-bottom: 4px; }
.report-page .body-text .bold-inline { font-weight: 700; }
.report-page .section-heading { font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; margin-top: 20px; margin-bottom: 6px; display: block; }
.report-page .agenda-list { list-style: none; padding: 0; margin: 0 0 8px 0; }
.report-page .agenda-list li { font-size: 13.5px; line-height: 2.0; padding-right: 4px; }
.report-page .blank-line { display: block; height: 10px; }
.report-page .closing-text { font-size: 13.5px; line-height: 2.1; margin-top: 6px; }
.report-page .divider { border: none; border-top: 1px solid #000; margin: 14px 0 10px 0; }
.report-page .sig-table { border: 1.5px solid #000; margin-top: 10px; width: 100%; }
.report-page .sig-table-row { display: flex; flex-wrap: wrap; width: 100%; }
.report-page .sig-table-row + .sig-table-row { border-top: 1.5px solid #000; }

.report-page .sig-card { flex: 1 1 33.33%; max-width: 33.33%; text-align: center; padding: 8px 10px; line-height: 1.8; box-sizing: border-box; border-right: 1.5px solid #000; } 
.report-page .sig-card:first-child,
.report-page .sig-card:nth-child(3n+1) { border-right: none; }
.report-page .sig-card .sig-name { display: block; font-weight: 700; font-size: 13px; }
.report-page .sig-card .sig-role { display: block; font-weight: 400; font-size: 11.5px; color: #222; }
.report-page .sig-card:last-child{ border-left:  1.5px solid #000; }
.report-page .sig-card:nth-child(3n) { border-left: none; }

/* ===== RESPONSIVE (موبایل) ===== */
@media (max-width: 600px) {
  .report-toolbar {
    padding: 10px 12px;
    justify-content: center;
    gap: 8px;
  }
  
  .report-toolbar .btn {
    flex: 1; /* عرض دکمه‌ها برابر می‌شود */
    padding: 8px;
    font-size: 12px;
    justify-content: center;
  }
  
  .report-toolbar .toolbar-label {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
    order: 4; /* انتقال متن صورتجلسه به خط پایین دکمه‌ها */
  }

  .report-page {
    margin-top: 100px; /* جبران ارتفاع بیشتر نوار ابزار دو خطی در موبایل */
    padding: 30px 20px 40px 20px; /* کم کردن حاشیه کاغذ گزارش در صفحه کوچک */
  }
}

/* ===== PRINT ===== */
@media print {
  body { background: #fff; }
  .report-toolbar { display: none !important; }
  .screen { margin: 0; padding: 0; max-width: 100%; }
  .report-page { margin: 0; padding: 30px 40px 40px 40px; box-shadow: none; max-width: 100%; }
  @page { size: A4; margin: 1.5cm 1.8cm; }
}
