.ct-wrap{ 
  max-width: 900px;
  margin: 0 auto;
  background:#fff;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid #eef2f7;
}

/* الهيدر */
.ct-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  padding-bottom:16px;
  border-bottom:1px solid #eef2f7;
}

.ct-logo img{ height:56px; object-fit:contain; }

.ct-meta{
  min-width:260px;
  text-align:right;
  font-size:13px;
  line-height:1.9;
}

.ct-title{
  text-align:center;
  font-weight:800;
  font-size:22px;
  margin:18px 0 6px;
}

.ct-bism{
  text-align:center;
  margin: 8px 0 14px;
  font-weight:700;
}

/* جداول داخل العقد فقط */
.ct-wrap table{ width:100%; border-collapse:collapse; }
.ct-table td, .ct-sign td, .ct-sign th{
  border:1px solid #eef2f7;
  padding:10px 12px;
  vertical-align:top;
}
.ct-td-head{ width:180px; font-weight:700; background:#f8fafc; }
/* Actions in contract view */
.contract-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.contract-actions .act{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 12px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  border:1px solid transparent;
  line-height:1;
  white-space:nowrap;
  font-size:14px;
}

.contract-actions .act-pdf{
  background:#eef2f7;
  color:#111;
  border-color:#e5e7eb;
}

.contract-actions .act-edit{
  background:#1f6feb;
  color:#fff;
}

.contract-actions .act-del{
  background:#e11d48;
  color:#fff;
}
.contract-actions .act:hover{ filter:brightness(.97); }